OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
OpenThreads::BlockCount Class Reference

#include <Block.h>

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

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.

Definition at line 100 of file Block.h.

Constructor & Destructor Documentation

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

Definition at line 104 of file Block.h.

OpenThreads::BlockCount::~BlockCount ( )
inline

Definition at line 108 of file Block.h.

Here is the call graph for this function:

Member Function Documentation

void OpenThreads::BlockCount::block ( )
inline

Definition at line 129 of file Block.h.

Here is the call graph for this function:

void OpenThreads::BlockCount::completed ( )
inline

Definition at line 114 of file Block.h.

Here is the call graph for this function:

unsigned int OpenThreads::BlockCount::getBlockCount ( ) const
inline

Definition at line 158 of file Block.h.

unsigned int OpenThreads::BlockCount::getCurrentCount ( ) const
inline

Definition at line 160 of file Block.h.

void OpenThreads::BlockCount::release ( )
inline

Definition at line 146 of file Block.h.

Here is the call graph for this function:

Here is the caller graph for this function:

void OpenThreads::BlockCount::reset ( )
inline

Definition at line 136 of file Block.h.

Here is the call graph for this function:

void OpenThreads::BlockCount::setBlockCount ( unsigned int  blockCount)
inline

Definition at line 156 of file Block.h.

Member Data Documentation

unsigned int OpenThreads::BlockCount::_blockCount
protected

Definition at line 166 of file Block.h.

OpenThreads::Condition OpenThreads::BlockCount::_cond
protected

Definition at line 165 of file Block.h.

unsigned int OpenThreads::BlockCount::_currentCount
protected

Definition at line 167 of file Block.h.

OpenThreads::Mutex OpenThreads::BlockCount::_mut
protected

Definition at line 164 of file Block.h.


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