OpenSceneGraph
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...

Inheritance diagram for OpenThreads::BlockCount:
Inheritance graph
[legend]
Collaboration diagram for OpenThreads::BlockCount:
Collaboration graph
[legend]

Public Member Functions

 BlockCount (unsigned int 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.


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