Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

ThreadNS::Condition Class Reference

#include <Thread.h>

List of all members.


Detailed Description

Provides an inter-thread signaling and synchronization mechanism.

Definition at line 46 of file Thread.h.


Public Member Functions

 Condition ()
 constructor
 ~Condition ()
 destructor
void broadcast () const
 wake up all threads waiting on the condition
void signal () const
 wake up a single thread waiting on the condition (which thread is unspecified)
bool timedwait (Lock &l, const timespec *abstime) const
 wait for at most abstime for the condition before giving up (return true if condition found)
void wait (Lock &l) const
 wait for condition

Protected Attributes

ConditionStorage * mycond
 internal class to hold system-dependent information

Private Member Functions

 Condition (const Condition &l)
 don't call
Conditionoperator= (const Condition &l)
 don't call

Constructor & Destructor Documentation

ThreadNS::Condition::Condition (  ) 

constructor

Definition at line 513 of file Thread.cc.

ThreadNS::Condition::~Condition (  ) 

destructor

Definition at line 514 of file Thread.cc.

ThreadNS::Condition::Condition ( const Condition l  )  [private]

don't call


Member Function Documentation

void ThreadNS::Condition::broadcast (  )  const

wake up all threads waiting on the condition

Definition at line 516 of file Thread.cc.

void ThreadNS::Condition::signal (  )  const

wake up a single thread waiting on the condition (which thread is unspecified)

Definition at line 521 of file Thread.cc.

bool ThreadNS::Condition::timedwait ( Lock l,
const timespec *  abstime 
) const

wait for at most abstime for the condition before giving up (return true if condition found)

Definition at line 526 of file Thread.cc.

void ThreadNS::Condition::wait ( Lock l  )  const

wait for condition

Definition at line 534 of file Thread.cc.

Condition& ThreadNS::Condition::operator= ( const Condition l  )  [private]

don't call


Member Data Documentation

ConditionStorage* ThreadNS::Condition::mycond [protected]

internal class to hold system-dependent information

the condition's implementation storage

Definition at line 56 of file Thread.h.

Referenced by broadcast(), signal(), timedwait(), wait(), and ~Condition().


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

Tekkotsu v4.0
Generated Thu Nov 22 00:58:59 2007 by Doxygen 1.5.4