|
OpenThreads
|
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 |
BlockCount is a block that can be used to halt a thread that is waiting for a specified number of operations to be completed.
| OpenThreads::BlockCount::BlockCount | ( | unsigned int | blockCount | ) | [inline] |
| OpenThreads::BlockCount::~BlockCount | ( | ) | [inline] |
References _blockCount, and release().
| void OpenThreads::BlockCount::block | ( | ) | [inline] |
References _mut, _currentCount, _cond, and OpenThreads::Condition::wait().
| void OpenThreads::BlockCount::completed | ( | ) | [inline] |
References _mut, _currentCount, _cond, and OpenThreads::Condition::broadcast().
| unsigned int OpenThreads::BlockCount::getBlockCount | ( | ) | const [inline] |
References _blockCount.
| unsigned int OpenThreads::BlockCount::getCurrentCount | ( | ) | const [inline] |
References _currentCount.
| void OpenThreads::BlockCount::release | ( | ) | [inline] |
References _mut, _currentCount, _cond, and OpenThreads::Condition::broadcast().
Referenced by ~BlockCount().
| void OpenThreads::BlockCount::reset | ( | ) | [inline] |
References _mut, _currentCount, _blockCount, _cond, and OpenThreads::Condition::broadcast().
| void OpenThreads::BlockCount::setBlockCount | ( | unsigned int | blockCount | ) | [inline] |
References _blockCount.
unsigned int OpenThreads::BlockCount::_blockCount [protected] |
Referenced by ~BlockCount(), reset(), setBlockCount(), and getBlockCount().
OpenThreads::Condition OpenThreads::BlockCount::_cond [protected] |
Referenced by completed(), block(), reset(), and release().
unsigned int OpenThreads::BlockCount::_currentCount [protected] |
Referenced by completed(), block(), reset(), release(), and getCurrentCount().
OpenThreads::Mutex OpenThreads::BlockCount::_mut [protected] |
Referenced by completed(), block(), reset(), and release().
| Generated at Tue Oct 11 2011 20:20:29 for the OpenThreads by doxygen 1.7.5. |