CondVar Class Reference

#include <dthread.h>

Public Member Functions

 CondVar (Mutex *m=NULL)
 ~CondVar ()
bool unlock ()
bool trylock ()
bool lock ()
bool signal ()
bool broadcast ()
bool wait ()

Private Attributes

pthread_cond_t cond
Mutexmutex
bool created_mutex

Detailed Description

Definition at line 93 of file dthread.h.


Constructor & Destructor Documentation

CondVar::CondVar ( Mutex m = NULL  ) 

Definition at line 92 of file dthread-win.C.

References created_mutex, and mutex.

CondVar::~CondVar (  ) 

Definition at line 107 of file dthread-win.C.

References created_mutex, and mutex.


Member Function Documentation

bool CondVar::broadcast (  ) 

Definition at line 141 of file dthread-win.C.

bool CondVar::lock (  ) 

Definition at line 123 of file dthread-win.C.

References Mutex::lock(), and mutex.

Referenced by ScopeLock::ScopeLock().

bool CondVar::signal (  ) 

Definition at line 128 of file dthread-win.C.

bool CondVar::trylock (  ) 

Definition at line 161 of file dthread-unix.C.

References mutex, and Mutex::trylock().

bool CondVar::unlock (  ) 

Definition at line 118 of file dthread-win.C.

References mutex, and Mutex::unlock().

Referenced by ScopeLock::unlock().

bool CondVar::wait (  ) 

Definition at line 161 of file dthread-win.C.

References Mutex::mutex, and mutex.


Field Documentation

pthread_cond_t CondVar::cond [private]

Definition at line 95 of file dthread.h.

bool CondVar::created_mutex [private]

Definition at line 105 of file dthread.h.

Referenced by CondVar(), and ~CondVar().

Mutex* CondVar::mutex [private]

Definition at line 104 of file dthread.h.

Referenced by CondVar(), lock(), trylock(), unlock(), wait(), and ~CondVar().


The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 12 Jul 2013 for SymtabAPI by  doxygen 1.6.1