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

BlockCount is a block that can be used to halt a thread that is waiting for a specified number of operations to be completed. More...

Public Member Functions

 BlockCount (unsigned int blockCount)
 
 ~BlockCount ()
 
void completed ()
 
void block ()
 
void reset ()
 
void release ()
 
void setBlockCount (unsigned int blockCount)
 
unsigned int getBlockCount () const
 
unsigned int getCurrentCount () const
 

Protected Attributes

OpenThreads::Mutex _mut
 
OpenThreads::Condition _cond
 
unsigned int _blockCount
 
unsigned int _currentCount
 

Detailed Description

BlockCount is a block that can be used to halt a thread that is waiting for a specified number of operations to be completed.

Constructor & Destructor Documentation

OpenThreads::BlockCount::BlockCount ( unsigned int  blockCount)
inline
OpenThreads::BlockCount::~BlockCount ( )
inline

Member Function Documentation

void OpenThreads::BlockCount::block ( )
inline
void OpenThreads::BlockCount::completed ( )
inline
unsigned int OpenThreads::BlockCount::getBlockCount ( ) const
inline
unsigned int OpenThreads::BlockCount::getCurrentCount ( ) const
inline
void OpenThreads::BlockCount::release ( )
inline
void OpenThreads::BlockCount::reset ( )
inline
void OpenThreads::BlockCount::setBlockCount ( unsigned int  blockCount)
inline

Member Data Documentation

unsigned int OpenThreads::BlockCount::_blockCount
protected
OpenThreads::Condition OpenThreads::BlockCount::_cond
protected
unsigned int OpenThreads::BlockCount::_currentCount
protected
OpenThreads::Mutex OpenThreads::BlockCount::_mut
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.