webworker-threads
Advanced tools
Comparing version 0.4.13 to 0.5.1
{ | ||
"name": "webworker-threads", | ||
"version": "0.4.13", | ||
"version": "0.5.1", | ||
"main": "build/Release/WebWorkerThreads.node", | ||
@@ -39,3 +39,3 @@ "description": "Lightweight Web Worker API implementation with native threads", | ||
"dependencies": { | ||
"nan": "0.8.x" | ||
"nan": "1.2.x" | ||
}, | ||
@@ -42,0 +42,0 @@ "devDependencies": { |
@@ -33,3 +33,3 @@ # WebWorker Threads | ||
postMessage("I'm working before postMessage('ali')."); | ||
onmessage = function(event) { | ||
this.onmessage = function(event) { | ||
postMessage('Hi ' + event.data); | ||
@@ -79,3 +79,3 @@ self.close(); | ||
} | ||
onmessage = function (event) { | ||
this.onmessage = function (event) { | ||
postMessage(fibo(event.data)); | ||
@@ -82,0 +82,0 @@ } |
var Threads= require('webworker-threads'); | ||
var Threads= require('../'); | ||
@@ -5,0 +5,0 @@ |
var Threads= require('webworker-threads'); | ||
var Threads= require('../'); | ||
@@ -84,2 +84,2 @@ function cb (err, msg) { | ||
return π; | ||
} | ||
} |
var Threads= require('webworker-threads'); | ||
var Threads= require('../'); | ||
@@ -5,0 +5,0 @@ function cb (err, msg) { |
var Threads= require('webworker-threads'); | ||
var Threads= require('../'); | ||
@@ -5,0 +5,0 @@ function cb (err, msg) { |
var Threads= require('webworker-threads'); | ||
var Threads= require('../'); | ||
@@ -5,0 +5,0 @@ console.log('Launch with/without --expose_gc to compare memory usage') |
var Threads= require('webworker-threads'); | ||
var Threads= require('../'); | ||
@@ -5,0 +5,0 @@ function ƒ () { return Math.random() } |
var Thread= require('webworker-threads'); | ||
var Thread= require('../'); | ||
@@ -5,0 +5,0 @@ function cb (e,m) { |
var Thread= require('webworker-threads'); | ||
var Thread= require('../'); | ||
@@ -5,0 +5,0 @@ |
var Thread= require('webworker-threads'); | ||
var Thread= require('../'); | ||
@@ -5,0 +5,0 @@ function cb (e,m) { |
var Thread= require('webworker-threads'); | ||
var Thread= require('../'); | ||
@@ -5,0 +5,0 @@ function cb (e,m) { |
var Threads= require('webworker-threads'); | ||
var Threads= require('../'); | ||
@@ -35,2 +35,2 @@ function cb (err, msg) { | ||
setInterval(display, 1e3); | ||
setInterval(display, 1e3); |
var Threads= require('webworker-threads'); | ||
var Threads= require('../'); | ||
@@ -5,0 +5,0 @@ function A (err, msg) { |
var Threads= require('webworker-threads'); | ||
var Threads= require('../'); | ||
@@ -5,0 +5,0 @@ function A (err, msg) { |
var Threads= require('webworker-threads'); | ||
var Threads= require('../'); | ||
@@ -5,0 +5,0 @@ function ƒ () { |
var t= require('webworker-threads'); | ||
var t= require('../'); | ||
@@ -5,0 +5,0 @@ function killHandler (data) { |
@@ -1,2 +0,2 @@ | ||
var t= require('webworker-threads'); | ||
var t= require('../'); | ||
@@ -3,0 +3,0 @@ function eventHandler (data) { |
var Thread= require('webworker-threads'); | ||
var Thread= require('../'); | ||
@@ -5,0 +5,0 @@ function cb (e,m) { |
var T= require('webworker-threads'); | ||
var T= require('../'); | ||
@@ -5,0 +5,0 @@ var i= process.argv[2] || 1; |
var T= require('webworker-threads'); | ||
var T= require('../'); | ||
@@ -5,0 +5,0 @@ var i= Math.floor(process.argv[2]) || 1; |
var T= require('webworker-threads'); | ||
var T= require('../'); | ||
@@ -5,0 +5,0 @@ var i= process.argv[2] || 1; |
var t= require('webworker-threads'); | ||
var t= require('../'); | ||
@@ -5,0 +5,0 @@ function eHandler (data) { |
@@ -11,3 +11,3 @@ | ||
var s= Date.now(); | ||
var o= require('webworker-threads') | ||
var o= require('../') | ||
.create() | ||
@@ -14,0 +14,0 @@ .eval(function boot () { |
var T= require('webworker-threads'); | ||
var T= require('../'); | ||
@@ -25,2 +25,2 @@ | ||
setInterval(display, 1e3); | ||
setInterval(display, 1e3); |
var T= require('webworker-threads'); | ||
var T= require('../'); | ||
@@ -25,2 +25,2 @@ | ||
setInterval(display, 1e3); | ||
setInterval(display, 1e3); |
@@ -1,2 +0,2 @@ | ||
var Threads= require('webworker-threads'); | ||
var Threads= require('../'); | ||
@@ -17,2 +17,2 @@ function cb (err, msg) { | ||
Threads.createPool(i).all.eval(ƒ).all.eval('ƒ()', cb); | ||
Threads.createPool(i).all.eval(ƒ).all.eval('ƒ()', cb); |
@@ -7,3 +7,3 @@ /* | ||
var Threads= require('webworker-threads'); | ||
var Threads= require('../'); | ||
@@ -10,0 +10,0 @@ function cb (err, msg) { |
@@ -1,2 +0,2 @@ | ||
var Threads= require('webworker-threads'); | ||
var Threads= require('../'); | ||
@@ -18,2 +18,2 @@ function cb (err, msg) { | ||
Threads.createPool(i).all.eval(ƒ).all.eval('ƒ()', cb); | ||
Threads.createPool(i).all.eval(ƒ).all.eval('ƒ()', cb); |
var i= parseInt(process.argv[2], 10) || 2; | ||
var pool= require('webworker-threads').createPool(i); | ||
var pool= require('../').createPool(i); | ||
console.log("Using "+ i+ " threads."); | ||
@@ -4,0 +4,0 @@ |
var i= parseInt(process.argv[2], 10) || 2; | ||
var pool= require('webworker-threads').createPool(i); | ||
var pool= require('../').createPool(i); | ||
console.log("Using "+ i+ " threads."); | ||
@@ -4,0 +4,0 @@ |
var i= parseInt(process.argv[2], 10) || 2; | ||
var pool= require('webworker-threads').createPool(i); | ||
var pool= require('../').createPool(i); | ||
console.log("Using "+ i+ " threads."); | ||
@@ -4,0 +4,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
103
1734
246020