Used to keep track of a thread's activities within its entry point function.
More...
#include <Thread_Control.h>
Used to keep track of a thread's activities within its entry point function.
A ACE_Thread_Manager uses this class to ensure that threads it spawns automatically register and unregister themselves with it. This class can be stored in thread-specific storage using the ACE_TSS wrapper. When a thread exits the <ACE_TSS::cleanup> function deletes this object, thereby ensuring that it gets removed from its associated ACE_Thread_Manager.
Initialize the thread control object. If insert != 0, then register the thread with the Thread_Manager.
ACE_Thread_Control::~ACE_Thread_Control |
( |
void |
| ) |
|
Remove the thread from its associated Thread_Manager and exit the thread if <do_thr_exit> is enabled.
void ACE_Thread_Control::dump |
( |
void |
| ) |
const |
Dump the state of an object.
ACE_THR_FUNC_RETURN ACE_Thread_Control::exit |
( |
ACE_THR_FUNC_RETURN |
status, |
|
|
int |
do_thr_exit |
|
) |
| |
Remove this thread from its associated ACE_Thread_Manager and exit the thread if do_thr_exit is enabled.
Store the Thread_Manager and use it to register ourselves for correct shutdown.
ACE_THR_FUNC_RETURN ACE_Thread_Control::status |
( |
ACE_THR_FUNC_RETURN |
status | ) |
|
|
inline |
Set the exit status (and return existing status).
ACE_THR_FUNC_RETURN ACE_Thread_Control::status |
( |
void |
| ) |
|
|
inline |
Get the current exit status.
Returns the current Thread_Manager.
Atomically set a new Thread_Manager and return the old Thread_Manager.
ACE_Thread_Control::ACE_ALLOC_HOOK_DECLARE |
Declare the dynamic allocation hooks.
ACE_THR_FUNC_RETURN ACE_Thread_Control::status_ |
|
private |
Keeps track of the exit status for the thread.
Pointer to the thread manager for this block of code.
The documentation for this class was generated from the following files: