gz/common/WorkerPool.hh
Forward declarations for the common classes.
A Time class, can be used to hold wall- or sim-time. stored as sec and nano-sec.
Definition: gz/common/Time.hh:33
#define IGN_COMMON_WARN_IGNORE__DLL_INTERFACE_MISSING
Microsoft Visual Studio does not automatically export the interface information for member variables ...
Definition: gz/common/SuppressWarning.hh:65
WorkerPool(const unsigned int _minThreadCount=1u)
Creates worker threads. The number of worker threads is determined by max(std::thread::hardware_concu...
bool WaitForResults(const Time &_timeout=Time::Zero)
Waits until all work is done and threads are idle.
void AddWork(std::function< void()> _work, std::function< void()> _cb=std::function< void()>())
Adds work to the worker pool with optional callback.
A pool of worker threads that do stuff in parallel.
Definition: gz/common/WorkerPool.hh:36
static const Time Zero
A static zero time variable set to common::Time(0, 0).
Definition: gz/common/Time.hh:36
#define IGN_COMMON_WARN_RESUME__DLL_INTERFACE_MISSING
Definition: gz/common/SuppressWarning.hh:68