conditional Class Reference

Conditional. More...

#include <lock.h>

List of all members.

Public Member Functions

 conditional (void)
 ~conditional (void)
void signal (void)
void broadcast (void)
bool wait (void)
bool wait (int timeout)

Protected Attributes

pthread_mutexattr_t * attr
pthread_mutex_t * mutex
pthread_cond_t * cond
int queue

Detailed Description

Conditional.

Implies a condition that one or more threads can wait on that other threads can raise.


Constructor & Destructor Documentation

conditional::conditional ( void   ) 

Constructor.

Sets up POSIX attributes.

References attr, cond, mutex, and queue.

conditional::~conditional ( void   ) 

Destructor.

Cleans up POSIX structures.

References attr, cond, and mutex.


Member Function Documentation

bool conditional::wait ( int  timeout  ) 

Sleep for a number of microseconds or until the condition is raised.

Parameters:
timeout Timeout in 10^-4 seconds.

References cond, mutex, and queue.


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

Generated on Sun Feb 28 10:35:22 2010 for GRACE by  doxygen 1.6.1