TGo4TaskHandlerRunnable Class Reference

This is the abstract interface for all runnables associated with the taskhandler class interface. More...

#include <TGo4TaskHandlerRunnable.h>

Inheritance diagram for TGo4TaskHandlerRunnable:

TGo4Runnable TGo4CommandRunnable TGo4DataRunnable TGo4StatusRunnable

List of all members.

Public Member Functions

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

Protected Member Functions

Bool_t CheckStopBuffer (TBuffer *buf, Int_t *result=0)
 Test if buffer contains a message to stop this runnable.
Bool_t CheckTransportOpen ()
 Test if socket transport exists and is open.

Protected Attributes

TGo4SocketfxTransport
 link to external inter-tasl transport channel
TGo4TaskHandlerfxTaskHandler
 link to external task handler (for server mode) 1 1
Bool_t fbReceiverMode
 flag indicating operation mode of runnable, depending on client or server mode of task handler
TGo4BufferQueuefxBufferQueue
 Link to external buffer queue.

Private Member Functions

 TGo4TaskHandlerRunnable ()


Detailed Description

This is the abstract interface for all runnables associated with the taskhandler class interface.

Definition at line 31 of file TGo4TaskHandlerRunnable.h.


Constructor & Destructor Documentation

TGo4TaskHandlerRunnable::TGo4TaskHandlerRunnable ( const char *  name,
TGo4ThreadManager man,
TGo4TaskHandler hand,
Bool_t  receivermode = kTRUE 
)

Definition at line 25 of file TGo4TaskHandlerRunnable.cxx.

TGo4TaskHandlerRunnable::~TGo4TaskHandlerRunnable (  )  [virtual]

Definition at line 32 of file TGo4TaskHandlerRunnable.cxx.

TGo4TaskHandlerRunnable::TGo4TaskHandlerRunnable (  )  [private]


Member Function Documentation

virtual Int_t TGo4TaskHandlerRunnable::Run ( void *  ptr  )  [pure virtual]

The working function which runs in the thread.

Implements TGo4Runnable.

Implemented in TGo4CommandRunnable, TGo4DataRunnable, and TGo4StatusRunnable.

TGo4TaskHandler * TGo4TaskHandlerRunnable::GetTaskHandler (  ) 

Definition at line 36 of file TGo4TaskHandlerRunnable.cxx.

Bool_t TGo4TaskHandlerRunnable::CheckStopBuffer ( TBuffer *  buf,
Int_t *  result = 0 
) [protected]

Test if buffer contains a message to stop this runnable.

This mechanism is used to properly put taskhandler threads into parking position when connection is discarded. Value of buffer is set to external variable result optionally.

Definition at line 41 of file TGo4TaskHandlerRunnable.cxx.

Bool_t TGo4TaskHandlerRunnable::CheckTransportOpen (  )  [protected]

Test if socket transport exists and is open.

If not open, sleep a while to avoid deadlooping of Run()

Definition at line 68 of file TGo4TaskHandlerRunnable.cxx.


Member Data Documentation

link to external inter-tasl transport channel

Definition at line 57 of file TGo4TaskHandlerRunnable.h.

link to external task handler (for server mode) 1 1

Definition at line 62 of file TGo4TaskHandlerRunnable.h.

flag indicating operation mode of runnable, depending on client or server mode of task handler

Definition at line 66 of file TGo4TaskHandlerRunnable.h.

Link to external buffer queue.

For object sending mode.

Definition at line 69 of file TGo4TaskHandlerRunnable.h.


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

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