ACE_Thread_Hook Class Reference

This class makes it possible to provide user-defined "start" hooks that are called before the thread entry point function is invoked. More...

#include <Thread_Hook.h>

List of all members.

Public Member Functions

virtual ~ACE_Thread_Hook (void)
 Destructor.

virtual ACE_THR_FUNC_RETURN start (ACE_THR_FUNC func, void *arg)

Static Public Member Functions

ACE_Thread_Hookthread_hook (ACE_Thread_Hook *hook)
ACE_Thread_Hookthread_hook (void)
 Returns the current system thread hook.


Detailed Description

This class makes it possible to provide user-defined "start" hooks that are called before the thread entry point function is invoked.

Definition at line 35 of file Thread_Hook.h.


Constructor & Destructor Documentation

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_Thread_Hook::~ACE_Thread_Hook void   )  [virtual]
 

Destructor.

Definition at line 10 of file Thread_Hook.cpp.

00011 {
00012 }


Member Function Documentation

ACE_THR_FUNC_RETURN ACE_Thread_Hook::start ACE_THR_FUNC  func,
void *  arg
[virtual]
 

This method can be overridden in a subclass to customize this pre-function call "hook" invocation that can perform initialization processing before the thread entry point method is called back. The func and arg passed into the start hook are the same as those passed by the application that spawned the thread.

Definition at line 15 of file Thread_Hook.cpp.

Referenced by ACE_OS_Thread_Adapter::invoke(), and ACE_Thread_Adapter::invoke_i().

00017 {
00018   return (func) (arg);
00019 }

ACE_Thread_Hook * ACE_Thread_Hook::thread_hook void   )  [static]
 

Returns the current system thread hook.

Definition at line 28 of file Thread_Hook.cpp.

References ACE_OS_Object_Manager::thread_hook().

00029 {
00030   return ACE_OS_Object_Manager::thread_hook ();
00031 }

ACE_Thread_Hook * ACE_Thread_Hook::thread_hook ACE_Thread_Hook hook  )  [static]
 

sets the system wide thread hook, returns the previous thread hook or 0 if none is set.

Definition at line 22 of file Thread_Hook.cpp.

References ACE_OS_Object_Manager::thread_hook().

00023 {
00024   return ACE_OS_Object_Manager::thread_hook (hook);
00025 }


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 11:30:55 2006 for ACE by doxygen 1.3.6