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

This class provides an object-oriented thread condition interface. More...

#include <Condition.h>

Public Member Functions

 Condition ()
 
virtual ~Condition ()
 
virtual int wait (Mutex *mutex)
 
virtual int wait (Mutex *mutex, unsigned long int ms)
 
virtual int signal ()
 
virtual int broadcast ()
 

Detailed Description

This class provides an object-oriented thread condition interface.

Definition at line 32 of file Condition.h.

Constructor & Destructor Documentation

OpenThreads::Condition::Condition ( )

Constructor

virtual OpenThreads::Condition::~Condition ( )
virtual

Destructor

Member Function Documentation

virtual int OpenThreads::Condition::broadcast ( )
virtual

Wake all threads waiting on this condition.

Returns
0 if normal, -1 if errno set, errno code otherwise.

Here is the caller graph for this function:

virtual int OpenThreads::Condition::signal ( )
virtual

Signal a SINGLE thread to wake if it's waiting.

Returns
0 if normal, -1 if errno set, errno code otherwise.
virtual int OpenThreads::Condition::wait ( Mutex mutex)
virtual

Wait on a mutex.

Here is the caller graph for this function:

virtual int OpenThreads::Condition::wait ( Mutex mutex,
unsigned long int  ms 
)
virtual

Wait on a mutex for a given amount of time (ms)

Returns
0 if normal, -1 if errno set, errno code otherwise.

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