0.1.0 • Published 11 years ago

libuv_thread v0.1.0

Weekly downloads
1
License
BSD-2-Clause
Repository
-
Last release
11 years ago

nodeLibuvThreadBuild Status

node multi thread support using libuv.

Installing the module

With npm:

libuv_thread module is supported windows, linux, mac.

Make sure, node-gyp has installed.

 npm install libuv_thread

From source:

 git clone https://github.com/DoubleSpout/nodeLibuvThread.git
 cd libuv_thread
 node-gyp rebuild

To include the module in your project:

 var libuv_thread = require('libuv_thread');

##Simple Example:

var thread = require('../');
var threadFunc = function(obj){
	return ++obj.count;
}
thread(threadFunc, {count:0}, function(err,count){
	if(err) return console.log(err);
	console.log(count);//this will print 1
})

##Api:

libuv_thread(func, obj, callback);

func: thread work function

obj: arguments for the thread funtion

callback:has two arguments,error and result,the result will be thread work return value

0.1.0

11 years ago

0.0.8

11 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago