RobWorkProject  24.8.23-
Classes | Namespaces
ThreadPool.hpp File Reference

A thread pool that can be assigned work. More...

#include <boost/function/function_fwd.hpp>
#include <boost/thread/mutex.hpp>
#include <boost/thread/thread.hpp>

Classes

class  ThreadPool
 A thread pool that can be assigned work. More...
 

Namespaces

 rw
 Deprecated namespace since 16/4-2020 for this class.
 
 rw::core
 Most basic types for RobWork.
 
 rw::common
 Various utilities and definitions of general use.
 

Detailed Description

A thread pool that can be assigned work.

Work is handled in a FIFO manner, and the pool is intended to be very simple and basic.

For more complex behaviour please look at the ThreadTask type, which has a higher abstraction for adding tasks to a ThreadPool.