Class: ThreadPool
(abstract)ThreadPool(messenger)
Workers consumer
Constructor
(abstract) new ThreadPool(messenger)
Parameters:
Name | Type | Description |
---|---|---|
messenger | wasm.ThreadMessenger |
Properties:
Name | Type | Description |
---|---|---|
status | Common.ThreadPool.Status | Worker status |
Methods
(async) broadcast()
Bulk execution of action to all workers
close()
Terminate all underlying workers
(async) open()
Generate n workers based on CPU cores. Invokes worker INIT action.
(abstract) updateProgress(value, expected)
Reports build progress
Parameters:
Name | Type | Description |
---|---|---|
value | float | Percent of processed tasks |
expected | int | Count of tasks that are not processed yet |