Class: ThreadMessenger
ThreadMessenger
Methods
onComplete()
All tasks completion callback
onConnect(index, workerID)
Open thread callback
Parameters:
Name | Type | Description |
---|---|---|
index | int | Worker index |
workerID | int | Worker identifyer |
onError(e, workerID)
Error callback
Parameters:
Name | Type | Description |
---|---|---|
e | int | Exception pointer |
workerID | int | Worker identifyer |
onTaskReady()
Task execution complete callback
setThreadPool(pool)
Link messenger with thread pool
Parameters:
Name | Type | Description |
---|---|---|
pool | wasm.ThreadPool | Active thread pool |