OpenThreads::Block Class Reference

Inheritance diagram for OpenThreads::Block:

osg::BlockAndFlushOperation osg::RefBlock osg::ReleaseContext_Block_MakeCurrentOperation List of all members.

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]

Reimplemented in osg::ReleaseContext_Block_MakeCurrentOperation, and osg::BlockAndFlushOperation.

void OpenThreads::Block::reset (  )  [inline]

void OpenThreads::Block::set ( bool  doRelease  )  [inline]


Member Data Documentation

Mutex OpenThreads::Block::_mut [protected]

Condition OpenThreads::Block::_cond [protected]

bool OpenThreads::Block::_released [protected]


The documentation for this class was generated from the following file:
Generated on Thu Apr 3 14:59:45 2008 for openscenegraph by  doxygen 1.5.1