Pol  Revision:cb584c9
Pol::threadhelp::DynTaskThreadPool::PoolWorker Class Reference
+ Inheritance diagram for Pol::threadhelp::DynTaskThreadPool::PoolWorker:

Classes

struct  BusyGuard
 

Public Member Functions

 PoolWorker (DynTaskThreadPool *parent, const std::string &name)
 
bool isbusy () const
 
void join ()
 
void run ()
 

Private Attributes

bool _busy
 
std::string _name
 
DynTaskThreadPool_parent
 
std::thread _thread
 

Detailed Description

Definition at line 435 of file threadhelp.cpp.

Constructor & Destructor Documentation

Pol::threadhelp::DynTaskThreadPool::PoolWorker::PoolWorker ( DynTaskThreadPool parent,
const std::string &  name 
)

Definition at line 455 of file threadhelp.cpp.

References run().

Member Function Documentation

bool Pol::threadhelp::DynTaskThreadPool::PoolWorker::isbusy ( ) const

Definition at line 460 of file threadhelp.cpp.

References _busy.

void Pol::threadhelp::DynTaskThreadPool::PoolWorker::join ( )

Definition at line 465 of file threadhelp.cpp.

References _thread.

Member Data Documentation

bool Pol::threadhelp::DynTaskThreadPool::PoolWorker::_busy
private

Definition at line 445 of file threadhelp.cpp.

Referenced by isbusy(), and run().

std::string Pol::threadhelp::DynTaskThreadPool::PoolWorker::_name
private

Definition at line 444 of file threadhelp.cpp.

Referenced by run().

DynTaskThreadPool* Pol::threadhelp::DynTaskThreadPool::PoolWorker::_parent
private

Definition at line 447 of file threadhelp.cpp.

Referenced by run().

std::thread Pol::threadhelp::DynTaskThreadPool::PoolWorker::_thread
private

Definition at line 446 of file threadhelp.cpp.

Referenced by join(), and run().


The documentation for this class was generated from the following file: