GSI Object Oriented Online Offline (Go4)
GO4-6.3.0
|
#include <TGo4Queue.h>
Public Member Functions | |
TGo4Queue (const char *name=nullptr) | |
virtual | ~TGo4Queue () |
void | Clear (Option_t *opt="") override |
virtual void | Wake () |
Bool_t | IsEmpty () const |
Int_t | GetEntries () const |
void | SetMaxEntries (Int_t max) |
Protected Member Functions | |
TObject * | Next () |
TObject * | Wait () |
void | Add (TObject *ob) |
Private Attributes | |
TMutex * | fxMutex {nullptr} |
TCondition * | fxCondition {nullptr} |
TList * | fxList {nullptr} |
Int_t | fiEntries {0} |
Int_t | fiMaxEntries {0} |
Bool_t | fbWakeUpCall {kFALSE} |
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 = nullptr | ) |
Definition at line 23 of file TGo4Queue.cxx.
References fxCondition, fxList, and fxMutex.
|
virtual |
Definition at line 34 of file TGo4Queue.cxx.
References fxCondition, fxList, and fxMutex.
|
protected |
Definition at line 67 of file TGo4Queue.cxx.
References fiMaxEntries, fxCondition, fxList, and fxMutex.
Referenced by TGo4BufferQueue::AddBuffer(), TGo4BufferQueue::AddBufferFromObject(), TGo4ObjectQueue::AddObject(), TGo4ObjectQueue::AddObjectFromBuffer(), and SetMaxEntries().
|
override |
Definition at line 43 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 | ( | ) | const |
Definition at line 80 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 61 of file TGo4Queue.cxx.
References fxList, and fxMutex.
Referenced by TGo4BufferQueue::Clear(), SetMaxEntries(), and Wait().
|
inline |
Definition at line 45 of file TGo4Queue.h.
References Add(), fiMaxEntries, Next(), and Wait().
Referenced by TGo4TaskHandler::TGo4TaskHandler().
|
protected |
Definition at line 49 of file TGo4Queue.cxx.
References fbWakeUpCall, fxCondition, IsEmpty(), and Next().
Referenced by SetMaxEntries(), TGo4BufferQueue::WaitBuffer(), and TGo4ObjectQueue::WaitObject().
|
virtual |
Definition at line 86 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().