ACE_Thread::exit, C++
or Win32 exception, "falling off the end" of the thread entry
point function, etc.).
#include <ace/Thread_Manager.h>
class ACE_Thread_Exit {
public:ACE_Thread_Exit (void);void thr_mgr (ACE_Thread_Manager *tm);void *status (void *s);void *status (void);~ACE_Thread_Exit (void);static ACE_Thread_Exit *instance (void);static void cleanup (void *instance, void *);private:void *status_;ACE_Thread_Control thread_control_;};
ACE_TSS wrapper. When a thread exits the
ACE_TSS::cleanup function deletes this object, thereby
closing it down gracefully.
ACE_Thread_Exit (void);
void thr_mgr (ACE_Thread_Manager *tm);
ACE_Thread_Manager.
void *status (void *s);
void *status (void);
~ACE_Thread_Exit (void);
static ACE_Thread_Exit *instance (void);
static void cleanup (void *instance, void *);
ACE_Object_Manager to destroy the
singleton.
void *status_;
ACE_Thread_Control thread_control_;
ACE_Thread_Manager.