#include <Thread_Adapter.h>
Inheritance diagram for ACE_Thread_Adapter:


Public Methods | |
| ACE_Thread_Adapter (ACE_THR_FUNC user_func, void *arg, ACE_THR_C_FUNC entry_point=(ACE_THR_C_FUNC) ace_thread_adapter, ACE_Thread_Manager *thr_mgr=0, ACE_Thread_Descriptor *td=0) | |
| Constructor. More... | |
| virtual ACE_THR_FUNC_RETURN | invoke (void) |
| Execute the <user_func_> with the <arg>. More... | |
| ACE_Thread_Manager * | thr_mgr (void) |
| Accessor for the optional <Thread_Manager>. More... | |
Private Methods | |
| ~ACE_Thread_Adapter (void) | |
| Ensure that this object must be allocated on the heap. More... | |
| virtual ACE_THR_FUNC_RETURN | invoke_i (void) |
| Called by invoke, mainly here to separate the SEH stuff because SEH on Win32 doesn't compile with local vars with destructors. More... | |
Private Attributes | |
| ACE_Thread_Manager * | thr_mgr_ |
| Optional thread manager. More... | |
Friends | |
| class | ACE_Thread_Adapter_Has_Private_Destructor |
| Friend declaration to avoid compiler warning: only defines a private destructor and has no friends. More... | |
This class is used in ACE_OS::thr_create(). In general, the thread that creates an object of this class is different from the thread that calls invoke() on this object. Therefore, the invoke() method is responsible for deleting itself.
|
||||||||||||||||||||||||
|
Constructor.
|
|
|
Ensure that this object must be allocated on the heap.
|
|
|
Execute the <user_func_> with the <arg>. This function deletes <this>, thereby rendering the object useless after the call returns. Reimplemented from ACE_Base_Thread_Adapter. |
|
|
Called by invoke, mainly here to separate the SEH stuff because SEH on Win32 doesn't compile with local vars with destructors.
|
|
|
Accessor for the optional <Thread_Manager>.
|
|
|
Friend declaration to avoid compiler warning: only defines a private destructor and has no friends.
Reimplemented from ACE_Base_Thread_Adapter. |
|
|
Optional thread manager.
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001