library: libThread #include "TCondition.h" |
TCondition
class description - header file - source file - inheritance tree (.pdf)
protected:
TCondition(const TCondition&)
TCondition& operator=(const TCondition&)
public:
TCondition(TMutex* m = 0)
virtual ~TCondition()
Int_t Broadcast()
static TClass* Class()
TMutex* GetMutex() const
virtual TClass* IsA() const
virtual void ShowMembers(TMemberInspector& insp, char* parent)
Int_t Signal()
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
Int_t TimedWait(ULong_t secs, ULong_t nanoSecs)
Int_t TimedWaitRelative(ULong_t ms)
Int_t Wait()
private:
TConditionImp* fConditionImp pointer to condition variable implementation
TMutex* fMutex mutex used around Wait() and TimedWait()
Bool_t fPrivateMutex is fMutex our private mutex
TCondition
This class implements a condition variable. Use a condition variable
to signal threads. The actual work is done via the TConditionImp
class (either TPosixCondition or TWin32Condition).
TCondition(TMutex *m)
Create a condition variable. The actual condition implementation
will be provided via the TThreadFactory. If no external mutex is
provided one will be created. Use GetMutex() to get this mutex
and use it before calling Signal() or Broadcast().
Int_t TimedWaitRelative(ULong_t ms)
Wait to be signaled or till the timer times out.
This method is given a relative time from now.
To wait for an absolute time since the beginning of the EPOCH, use
TCondition::TimedWait(ULong_t secs, ULong_t nanoSec).
Returns 0 if successfully signalled, 1 if time expired and -1 in
case of error.
Author: Fons Rademakers 01/07/97
Last update: root/thread:$Name: $:$Id: TCondition.cxx,v 1.10 2006/05/24 15:10:46 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.