maci::SimpleClientThreadHook − Simple Client Thread Start-up hook. |
#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) |
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. |
maci::SimpleClientThreadHook::SimpleClientThreadHook () [inline] Constructor of SimpleClientThreadHook which registers the hook |
virtual maci::SimpleClientThreadHook::~SimpleClientThreadHook () [inline, virtual] virtual destructor of SimpleClientThreadHook |
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 |
References initThread(). |
Generated automatically by Doxygen for ACS-2015.2 C++ API from the source code. |