Skip to main content

Class: ThreadMessenger

ThreadMessenger

Methods

onComplete()

All tasks completion callback

onConnect(index, workerID)

Open thread callback

Parameters:
NameTypeDescription
indexintWorker index
workerIDintWorker identifyer

onError(e, workerID)

Error callback

Parameters:
NameTypeDescription
eintException pointer
workerIDintWorker identifyer

onTaskReady()

Task execution complete callback

setThreadPool(pool)

Link messenger with thread pool

Parameters:
NameTypeDescription
poolwasm.ThreadPoolActive thread pool

Home