Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

maci::SimpleClientThreadHook Class Reference

Simple Client Thread Start-up hook. More...

#include <maciSimpleClientThreadHook.h>

List of all members.

Public Member Functions

 SimpleClientThreadHook ()
virtual ~SimpleClientThreadHook ()
virtual void initThread (void *arg)
virtual ACE_THR_FUNC_RETURN start (ACE_THR_FUNC func, void *arg)


Detailed Description

Simple Client Thread Start-up hook.

SimpleClientThreadHook class provides the default thread initialization for all threads that are going to be created after the instatiation of the SimpleClient object. It implements the start() method from ACE_Thread_Hook, which is called before the thread is executed. The default thread initialization initializes the logging system. If someone wants to change the default thread initialization, she/he has to override the initThread() method and instatiate the object. After this all threads will be initialized using new functionally. It is recommended that SimpleClientThreadHook::initThread() method is called from the overridden method to get logging system initialized.

This hook is set by creating SimpleClientThreadHook object at the SimpleClient instantaiation.


Constructor & Destructor Documentation

maci::SimpleClientThreadHook::SimpleClientThreadHook  )  [inline]
 

Constructor of SimpleClientThreadHook which registers the hook

virtual maci::SimpleClientThreadHook::~SimpleClientThreadHook  )  [inline, virtual]
 

virtual destructor of SimpleClientThreadHook


Member Function Documentation

virtual void maci::SimpleClientThreadHook::initThread void *  arg  )  [virtual]
 

Actual implementation of thread initialization, which provides the logging system initialization. This function is called from the start() method. If someone wants to change default threads' start-up functionallty he/she has to override this method. It is recommended that overriden method calls this one, i.e. SimpleClientThreadHook::initThread();

Parameters:
arg parameter that is passed to the thread

virtual ACE_THR_FUNC_RETURN maci::SimpleClientThreadHook::start ACE_THR_FUNC  func,
void *  arg
[inline, virtual]
 

Implementation of virtual start method from ACE_Thread_Hook, which is called before the thread is executed. The implemntation just calls initThread.

Parameters:
func thread function
arg thread parameter


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:37:32 2009 for ACS C++ API by doxygen 1.3.8