OpenThreads
Public Member Functions | Protected Attributes
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...

List of all members.

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]

References release().


Member Function Documentation

bool OpenThreads::Block::block ( ) [inline]
bool OpenThreads::Block::block ( unsigned long  timeout) [inline]
void OpenThreads::Block::release ( ) [inline]

References _cond, _mut, _released, and OpenThreads::Condition::broadcast().

Referenced by set(), and ~Block().

void OpenThreads::Block::reset ( ) [inline]

References _mut, and _released.

Referenced by set().

void OpenThreads::Block::set ( bool  doRelease) [inline]

References _released, release(), and reset().


Member Data Documentation

Referenced by block(), and release().

Referenced by block(), release(), and reset().

Referenced by block(), release(), reset(), and set().


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

osg logo
Generated at Sun Jan 8 2012 13:22:10 for the OpenThreads by doxygen 1.7.4.