Class ParallelTaskEngine
java.lang.Object
com.jozufozu.flywheel.backend.instancing.ParallelTaskEngine
- All Implemented Interfaces:
TaskEngine
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSpawns a number of work-stealing threads to process results in the build queue.voidvoidSubmit a task to the pool.voidWait for all running jobs to finish.
-
Constructor Details
-
ParallelTaskEngine
-
-
Method Details
-
group
-
startWorkers
public void startWorkers()Spawns a number of work-stealing threads to process results in the build queue. If the builder is already running, this method does nothing and exits. -
stopWorkers
public void stopWorkers() -
submit
Submit a task to the pool.- Specified by:
submitin interfaceTaskEngine
-
syncPoint
public void syncPoint()Wait for all running jobs to finish.- Specified by:
syncPointin interfaceTaskEngine
-