#include <Thread_Exit.h>
Collaboration diagram for ACE_Thread_Exit:

Public Methods | |
| ACE_Thread_Exit (void) | |
| Capture the Thread that will be cleaned up automatically. | |
| void | thr_mgr (ACE_Thread_Manager *tm) |
| Set the . | |
| ~ACE_Thread_Exit (void) | |
| Destructor calls the thread-specific exit hooks when a thread exits. | |
Static Public Methods | |
| ACE_Thread_Exit* | instance (void) |
| Singleton access point. | |
| void | cleanup (void *instance, void *) |
| Cleanup method, used by the to destroy the singleton. | |
Private Attributes | |
| ACE_Thread_Control | thread_control_ |
| Automatically add/remove the thread from the . | |
Static Private Attributes | |
| u_int | is_constructed_ = 0 |
Friends | |
| class | ACE_OS_Object_Manager |
This clever little helper class is stored in thread-specific storage using the wrapper. When a thread exits the function deletes this object, thereby closing it down gracefully.
|
|
Capture the Thread that will be cleaned up automatically.
|
|
|
Destructor calls the thread-specific exit hooks when a thread exits.
|
|
|
Cleanup method, used by the to destroy the singleton.
|
|
|
Singleton access point.
|
|
|
Set the .
|
|
|
Allow OS_Object_Manager to reset the status of <is_constructed_>.
|
|
|
Used to detect whether we should create a new instance (or not) within the instance method -- we don't trust the instance_ ptr because the destructor may have run (if ACE::fini() was called). See bug #526. We don't follow the singleton pattern due to dependency issues. |
|
|
Automatically add/remove the thread from the .
|
1.2.3 written by Dimitri van Heesch,
© 1997-2000