TGo4Queue Class Reference

Base class for all threadsafe pointer queues. More...

#include <TGo4Queue.h>

Inheritance diagram for TGo4Queue:

TGo4BufferQueue TGo4ObjectQueue

List of all members.

Public Member Functions

 TGo4Queue ()
 TGo4Queue (const char *name)
virtual ~TGo4Queue ()
virtual void Clear (Option_t *opt="")
virtual void Wake ()
Bool_t IsEmpty ()
Int_t GetEntries () const
void SetMaxEntries (Int_t max)

Protected Member Functions

TObject * Next ()
TObject * Wait ()
void Add (TObject *ob)

Private Attributes

TMutex * fxMutex
TCondition * fxCondition
TList * fxList
Int_t fiEntries
Int_t fiMaxEntries
Bool_t fbWakeUpCall


Detailed Description

Base class for all threadsafe pointer queues.

TObject pointers are transported in queue without streaming. Subclasses may specialize the behaviour on adding and waiting.

Author:
J. Adamczewski
Since:
13-Jul-2001

Definition at line 31 of file TGo4Queue.h.


Constructor & Destructor Documentation

TGo4Queue::TGo4Queue (  ) 

Definition at line 26 of file TGo4Queue.cxx.

TGo4Queue::TGo4Queue ( const char *  name  ) 

Definition at line 35 of file TGo4Queue.cxx.

TGo4Queue::~TGo4Queue (  )  [virtual]

Definition at line 43 of file TGo4Queue.cxx.


Member Function Documentation

void TGo4Queue::Clear ( Option_t *  opt = ""  )  [virtual]

Reimplemented in TGo4BufferQueue.

Definition at line 50 of file TGo4Queue.cxx.

void TGo4Queue::Wake (  )  [virtual]

Definition at line 102 of file TGo4Queue.cxx.

Bool_t TGo4Queue::IsEmpty (  ) 

Definition at line 96 of file TGo4Queue.cxx.

Int_t TGo4Queue::GetEntries (  )  const [inline]

Definition at line 46 of file TGo4Queue.h.

void TGo4Queue::SetMaxEntries ( Int_t  max  )  [inline]

Definition at line 48 of file TGo4Queue.h.

TObject * TGo4Queue::Next (  )  [protected]

Definition at line 71 of file TGo4Queue.cxx.

TObject * TGo4Queue::Wait (  )  [protected]

Definition at line 56 of file TGo4Queue.cxx.

void TGo4Queue::Add ( TObject *  ob  )  [protected]

Definition at line 77 of file TGo4Queue.cxx.


Member Data Documentation

TMutex* TGo4Queue::fxMutex [private]

Definition at line 58 of file TGo4Queue.h.

TCondition* TGo4Queue::fxCondition [private]

Definition at line 59 of file TGo4Queue.h.

TList* TGo4Queue::fxList [private]

Definition at line 60 of file TGo4Queue.h.

Int_t TGo4Queue::fiEntries [private]

Definition at line 61 of file TGo4Queue.h.

Int_t TGo4Queue::fiMaxEntries [private]

Definition at line 62 of file TGo4Queue.h.

Bool_t TGo4Queue::fbWakeUpCall [private]

Definition at line 63 of file TGo4Queue.h.


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

Generated on Thu Oct 28 12:31:32 2010 for Go4-Taskhandlerv4.04-2 by  doxygen 1.5.6