maci::SimpleClientThreadHook

NAME
SYNOPSIS
Detailed Description
Constructor & Destructor Documentation
Member Function Documentation
Author

NAME

maci::SimpleClientThreadHook −

Simple Client Thread Start-up hook.

SYNOPSIS

#include <maciSimpleClientThreadHook.h>

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

Referenced by start().

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

References initThread().

Author

Generated automatically by Doxygen for ACS-2015.2 C++ API from the source code.