openscenegraph
Public Member Functions | Protected Attributes | List of all members
OpenThreads::Block Class Reference
Inheritance diagram for OpenThreads::Block:
osg::BlockAndFlushOperation osg::RefBlock osg::ReleaseContext_Block_MakeCurrentOperation

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

Member Function Documentation

bool OpenThreads::Block::block ( )
inline
bool OpenThreads::Block::block ( unsigned long  timeout)
inline
void OpenThreads::Block::release ( )
inline
void OpenThreads::Block::reset ( )
inline
void OpenThreads::Block::set ( bool  doRelease)
inline

Member Data Documentation

Condition OpenThreads::Block::_cond
protected
Mutex OpenThreads::Block::_mut
protected
bool OpenThreads::Block::_released
protected

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