Method | Description | |
---|---|---|
assignJob ( IJob job ) : void |
Assigns job to all existing workers.
|
|
getWorkerCount ( ) : int |
Returns the number of existing workers.
|
|
initializeWorkers ( int workerCount ) : void |
Creates workerCount many workers. Can only be called once.
|
|
wait ( ) : void |
Waits, until all workers are finished with their current jobs.
|
public static initializeWorkers ( int workerCount ) : void | ||
workerCount | int | The number of workers to create. |
return | void |