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:34
#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
bool WaitForResults(const Time &_timeout)
Waits until all work is done and threads are idle.
WorkerPool(const unsigned int _minThreadCount=1u)
Creates worker threads. The number of worker threads is determined by max(std::thread::hardware_concu...
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:37
#define IGN_COMMON_WARN_RESUME__DLL_INTERFACE_MISSING
Definition: gz/common/SuppressWarning.hh:68