OpenThreads
Public Member Functions | Protected Attributes | List of all members
OpenThreads::Block Class Reference

Block is a block that can be used to halt a thread that is waiting another thread to release it. More...

Public Member Functions

 Block ()
 
 ~Block ()
 
bool block ()
 
bool block (unsigned long timeout)
 
void release ()
 
void reset ()
 
void set (bool doRelease)
 

Protected Attributes

Mutex _mut
 
Condition _cond
 
bool _released
 

Detailed Description

Block is a block that can be used to halt a thread that is waiting another thread to release it.

Constructor & Destructor Documentation

OpenThreads::Block::Block ( )
inline
OpenThreads::Block::~Block ( )
inline

Member Function Documentation

bool OpenThreads::Block::block ( )
inline
bool OpenThreads::Block::block ( unsigned long  timeout)
inline
void OpenThreads::Block::release ( )
inline
void OpenThreads::Block::reset ( )
inline
void OpenThreads::Block::set ( bool  doRelease)
inline

Member Data Documentation

Condition OpenThreads::Block::_cond
protected
Mutex OpenThreads::Block::_mut
protected
bool OpenThreads::Block::_released
protected

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

osg logo
Generated at Wed Nov 11 2015 22:28:36 for the OpenThreads by doxygen 1.8.10.