Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

L1394::ThreadCondition Class Reference

This class is a wrapper for the pthread_cond_t variables. More...

#include <Thread.hpp>

List of all members.

Public Member Functions

 ThreadCondition (const ThreadMutex &)
 Constructor.
 ~ThreadCondition ()
 Destructor.
int timedWait (long sec=0, long nsec=0) const
 timedWait atomically unlocks mutex and waits, but it also bounds the duration of the wait.
void wait () const
 wait atomically unlocks the mutex and waits for the condition variable to be signaled.
void notify () const
 Restarts one of the threads that are waiting on this condition variable.
void notifyAll () const
 Restarts all the threads that are waiting on the condition variable.


Detailed Description

This class is a wrapper for the pthread_cond_t variables.

Definition at line 90 of file Thread.hpp.


Constructor & Destructor Documentation

L1394::ThreadCondition::ThreadCondition const ThreadMutex  ) 
 

Constructor.

Definition at line 89 of file Thread.cpp.

L1394::ThreadCondition::~ThreadCondition  ) 
 

Destructor.

Definition at line 94 of file Thread.cpp.


Member Function Documentation

void L1394::ThreadCondition::notify  )  const [inline]
 

Restarts one of the threads that are waiting on this condition variable.

If several threads are waiting, exactly one is restarted, but it is not specified which.

Definition at line 116 of file Thread.hpp.

void L1394::ThreadCondition::notifyAll  )  const [inline]
 

Restarts all the threads that are waiting on the condition variable.

Definition at line 120 of file Thread.hpp.

int L1394::ThreadCondition::timedWait long  sec = 0,
long  nsec = 0
const
 

timedWait atomically unlocks mutex and waits, but it also bounds the duration of the wait.

If notify has not been signaled within the amount of time specified by abstime, the mutex is re-acquired.

Definition at line 98 of file Thread.cpp.

References L1394_FAILED, L1394_SUCCESS, and L1394::ThreadMutex::mutex.

void L1394::ThreadCondition::wait  )  const
 

wait atomically unlocks the mutex and waits for the condition variable to be signaled.

Definition at line 110 of file Thread.cpp.

References L1394::ThreadMutex::mutex.


The documentation for this class was generated from the following files:
Generated on Wed Aug 24 00:36:45 2005 for L1394 by doxygen 1.4.2
L1394 library (NMM) grahics.cs.uni-sb.de/~repplix/l1394_home/