RobWorkProject
Classes | Namespaces
ThreadPool.hpp File Reference

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

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

Classes

class  Ptr< T >
 Ptr stores a pointer and optionally takes ownership of the value. More...
 
class  ThreadSafeVariable< T >
 A thread safe protected variable. More...
 
class  ThreadPool
 A thread pool that can be assigned work. More...
 

Namespaces

 rw
 RobWork library.
 
 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.