gtkIOStream  1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
Cond Class Reference

#include <Thread.H>

Inheritance diagram for Cond:
[legend]
Collaboration diagram for Cond:
[legend]

Public Member Functions

 Cond ()
 Constructor. More...
 
virtual ~Cond ()
 Destructor. More...
 
void wait ()
 
void signal ()
 
void boroadcast ()
 
- Public Member Functions inherited from Mutex
 Mutex ()
 
virtual ~Mutex ()
 
int lock ()
 
int tryLock ()
 
int unLock ()
 

Private Attributes

pthread_cond_t cond
 The POSIX condition variable. More...
 

Additional Inherited Members

- Protected Attributes inherited from Mutex
pthread_mutex_t mut
 The POSIX mutex semaphore. More...
 

Detailed Description

Class which waits for a signal from another thread.

Definition at line 340 of file Thread.H.

Constructor & Destructor Documentation

◆ Cond()

Cond::Cond ( )
inline

Constructor.

Definition at line 344 of file Thread.H.

◆ ~Cond()

virtual Cond::~Cond ( )
inlinevirtual

Destructor.

Definition at line 350 of file Thread.H.

Here is the call graph for this function:

Member Function Documentation

◆ boroadcast()

void Cond::boroadcast ( )
inline

Signal all waiting threads. Assumes that the inherited Mutex::lock() method has already been called. Returns with Cond::Mutex in a locked state.

Definition at line 377 of file Thread.H.

◆ signal()

void Cond::signal ( )
inline

Signal a single waiting thread. Assumes that the inherited Mutex::lock() method has already been called. Returns with Cond::Mutex in a locked state.

Definition at line 369 of file Thread.H.

Here is the caller graph for this function:

◆ wait()

void Cond::wait ( )
inline

Wait for the signal or broadcast. Assumes that the inherited Mutex::lock() method has already been called. Returns with Cond::Mutex in a locked state.

Examples:
IIOQueueTest.C.

Definition at line 361 of file Thread.H.

Here is the caller graph for this function:

Member Data Documentation

◆ cond

pthread_cond_t Cond::cond
private

The POSIX condition variable.

Definition at line 341 of file Thread.H.


The documentation for this class was generated from the following file:
gtkIOStream: Cond Class Reference
GTK+ IOStream  Beta