GSI Object Oriented Online Offline (Go4)
GO4-5.3.2
|
#include <TGo4Queue.h>
Public Member Functions | |
TGo4Queue (const char *name=0) | |
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 |
Base class for all threadsafe pointer queues. TObject pointers are transported in queue without streaming. Subclasses may specialize the behaviour on adding and waiting.
Definition at line 31 of file TGo4Queue.h.
TGo4Queue::TGo4Queue | ( | const char * | name = 0 | ) |
Definition at line 24 of file TGo4Queue.cxx.
References fxCondition, fxList, and fxMutex.
|
virtual |
Definition at line 35 of file TGo4Queue.cxx.
References fxCondition, fxList, and fxMutex.
|
protected |
Definition at line 70 of file TGo4Queue.cxx.
References fiMaxEntries, fxCondition, fxList, and fxMutex.
Referenced by TGo4BufferQueue::AddBuffer(), TGo4BufferQueue::AddBufferFromObject(), TGo4ObjectQueue::AddObject(), and TGo4ObjectQueue::AddObjectFromBuffer().
|
virtual |
Reimplemented in TGo4BufferQueue.
Definition at line 45 of file TGo4Queue.cxx.
References fxList, and fxMutex.
Referenced by TGo4TaskHandler::ClearQueues(), and TGo4ClientTask::DisconnectServer().
|
inline |
Definition at line 43 of file TGo4Queue.h.
References fiEntries.
Bool_t TGo4Queue::IsEmpty | ( | ) |
Definition at line 88 of file TGo4Queue.cxx.
References fxList, and fxMutex.
Referenced by main(), TGo4ServerTask::NextCommand(), TGo4Task::NextCommand(), TGo4Task::NextObject(), TGo4Task::NextStatus(), and Wait().
|
protected |
Definition at line 64 of file TGo4Queue.cxx.
References fxList, and fxMutex.
Referenced by TGo4BufferQueue::Clear(), and Wait().
|
inline |
Definition at line 45 of file TGo4Queue.h.
References fiMaxEntries.
Referenced by TGo4TaskHandler::TGo4TaskHandler().
|
protected |
Definition at line 51 of file TGo4Queue.cxx.
References fbWakeUpCall, fxCondition, IsEmpty(), and Next().
Referenced by TGo4BufferQueue::WaitBuffer(), and TGo4ObjectQueue::WaitObject().
|
virtual |
Definition at line 94 of file TGo4Queue.cxx.
References fbWakeUpCall, and fxCondition.
Referenced by TGo4TaskHandler::StopTransportThreads().
|
private |
Definition at line 58 of file TGo4Queue.h.
|
private |
Definition at line 56 of file TGo4Queue.h.
Referenced by GetEntries().
|
private |
Definition at line 57 of file TGo4Queue.h.
Referenced by Add(), and SetMaxEntries().
|
private |
Definition at line 54 of file TGo4Queue.h.
Referenced by Add(), TGo4Queue(), Wait(), Wake(), and ~TGo4Queue().
|
private |
Definition at line 55 of file TGo4Queue.h.
Referenced by Add(), Clear(), IsEmpty(), Next(), TGo4Queue(), and ~TGo4Queue().
|
private |
Definition at line 53 of file TGo4Queue.h.
Referenced by Add(), Clear(), IsEmpty(), Next(), TGo4Queue(), and ~TGo4Queue().