#include <JobGroup.hpp>
A grouping of many jobs that can be waited on until the final job in the group finishes execution
Public Member Functions | |
JobGroup () | |
template<typename Fn , typename... Args> | |
void | run (Fn function, Args &&... args) |
Adds a job to the group and runs it. More... | |
void | wait_for_all () |
|
inline |
|
inline |
Adds a job to the group and runs it.
|
inline |
Waits for all jobs in the group to finish execution. Rather than sleeping or busy-waiting this function will cause the calling thread to start popping and stealing jobs from queues in an effort to help with the schedulers work-load