Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

TGo4DataRunnable Class Reference

Runnable responsible for data object exchange between transport (socket) and buffer (queue) In receiver mode, data objects are received from transport and passed to the queue in non receiver mode, runnables waits for the queue and sends all data objects from the queue over the transport thread. More...

#include <TGo4DataRunnable.h>

Inheritance diagram for TGo4DataRunnable:

TGo4TaskHandlerRunnable TGo4Runnable List of all members.

Public Member Functions

 TGo4DataRunnable (const char *name, TGo4ThreadManager *man, TGo4TaskHandler *hand, Bool_t receivermode=kTRUE)
virtual ~TGo4DataRunnable ()
virtual Int_t Run (void *ptr)
 The working function which runs in the thread.

Private Member Functions

 TGo4DataRunnable ()

Detailed Description

Runnable responsible for data object exchange between transport (socket) and buffer (queue) In receiver mode, data objects are received from transport and passed to the queue in non receiver mode, runnables waits for the queue and sends all data objects from the queue over the transport thread.

Definition at line 32 of file TGo4DataRunnable.h.


Constructor & Destructor Documentation

TGo4DataRunnable::TGo4DataRunnable const char *  name,
TGo4ThreadManager man,
TGo4TaskHandler hand,
Bool_t  receivermode = kTRUE
 

Definition at line 31 of file TGo4DataRunnable.cxx.

References TGo4TaskHandlerRunnable::fxBufferQueue, TGo4TaskHandlerRunnable::fxTaskHandler, TGo4TaskHandlerRunnable::fxTransport, TGo4TaskHandler::GetDataQueue(), and TGo4TaskHandler::GetDataTransport().

TGo4DataRunnable::~TGo4DataRunnable  )  [virtual]
 

Definition at line 41 of file TGo4DataRunnable.cxx.

TGo4DataRunnable::TGo4DataRunnable  )  [private]
 


Member Function Documentation

Int_t TGo4DataRunnable::Run void *  ptr  )  [virtual]
 

The working function which runs in the thread.

Implements TGo4TaskHandlerRunnable.

Definition at line 45 of file TGo4DataRunnable.cxx.

References TGo4BufferQueue::AddBuffer(), TGo4TaskHandlerRunnable::CheckStopBuffer(), TGo4TaskHandlerRunnable::CheckTransportOpen(), TGo4Log::Debug(), TGo4TaskHandlerRunnable::fbReceiverMode, TGo4BufferQueue::FreeBuffer(), TGo4TaskHandlerRunnable::fxBufferQueue, TGo4Runnable::fxManager, TGo4TaskHandlerRunnable::fxTransport, TGo4Socket::GetBuffer(), TGo4SocketSignalHandler::GetLastSignal(), TGo4Runnable::GetThread(), TGo4ThreadManager::IsTerminating(), kComQuit, TGo4Socket::ReceiveBuffer(), TGo4Socket::SendBuffer(), TGo4SocketSignalHandler::SetLastSignal(), TGo4Task::SubmitLocalCommand(), and TGo4BufferQueue::WaitBuffer().


The documentation for this class was generated from the following files:
Generated on Fri Nov 28 13:00:49 2008 for Go4-v3.04-1 by  doxygen 1.4.2