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::Block Class Reference

#include <Block.h>

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

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.

Definition at line 25 of file Block.h.

Constructor & Destructor Documentation

OpenThreads::Block::Block ( )
inline

Definition at line 29 of file Block.h.

OpenThreads::Block::~Block ( )
inline

Definition at line 32 of file Block.h.

Here is the call graph for this function:

Member Function Documentation

bool OpenThreads::Block::block ( )
inline

Definition at line 37 of file Block.h.

Here is the call graph for this function:

bool OpenThreads::Block::block ( unsigned long  timeout)
inline

Definition at line 50 of file Block.h.

Here is the call graph for this function:

void OpenThreads::Block::release ( )
inline

Definition at line 63 of file Block.h.

Here is the call graph for this function:

Here is the caller graph for this function:

void OpenThreads::Block::reset ( )
inline

Definition at line 73 of file Block.h.

Here is the caller graph for this function:

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

Definition at line 79 of file Block.h.

Here is the call graph for this function:

Member Data Documentation

Condition OpenThreads::Block::_cond
protected

Definition at line 91 of file Block.h.

Mutex OpenThreads::Block::_mut
protected

Definition at line 90 of file Block.h.

bool OpenThreads::Block::_released
protected

Definition at line 92 of file Block.h.


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