ACE 8.0.1
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
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>

Public Member Functions

 ACE_Thread_Hook ()
 Default constructor.
 
virtual ~ACE_Thread_Hook ()
 Destructor.
 
virtual ACE_THR_FUNC_RETURN start (ACE_THR_FUNC func, void *arg)
 

Static Public Member Functions

static ACE_Thread_Hookthread_hook (ACE_Thread_Hook *hook)
 
static ACE_Thread_Hookthread_hook ()
 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.

Constructor & Destructor Documentation

◆ ACE_Thread_Hook()

ACE_Thread_Hook::ACE_Thread_Hook ( )

Default constructor.

◆ ~ACE_Thread_Hook()

ACE_Thread_Hook::~ACE_Thread_Hook ( )
virtual

Destructor.

Member Function Documentation

◆ start()

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 func 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.

◆ thread_hook() [1/2]

ACE_Thread_Hook * ACE_Thread_Hook::thread_hook ( )
static

Returns the current system thread hook.

◆ thread_hook() [2/2]

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.


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