Thread

Creates a separate run thread (multithreading)

new virtuosity.multiThreading.Thread(path, onMessage, onExit);


Parameter Type Description
path String path to the file to run in the thread
onMessage Function action to complete when the thread sends a message using process.send(data)
onExit Function action to complete when the thread exits

Methods


Methods

send

Semds data to the thread

virtuosity.multiThreading.Thread.send(data);


Parameter Type Description
data Object data to send to the thread. This message is recieved with: process.on('message', function(data));