NAME

ACE_Thread_Exit - Keep exit information for a Thread in thread specific storage. so that the thread-specific exit hooks will get called no matter how the thread exits (e.g., via ACE_Thread::exit, C++ or Win32 exception, "falling off the end" of the thread entry point function, etc.).

SYNOPSIS

#include <ace/OS.h>

class ACE_Thread_Exit { public: ACE_Thread_Exit (void); void thr_mgr (ACE_Thread_Manager *tm); ~ACE_Thread_Exit (void); static ACE_Thread_Exit *instance (void); static void cleanup (void *instance, void *); private: ACE_Thread_Control thread_control_; };

DESCRIPTION

This clever little helper class is stored in thread-specific storage using the ACE_TSS wrapper. When a thread exits the ACE_TSS::cleanup function deletes this object, thereby closing it down gracefully.

PUBLIC MEMBERS

ACE_Thread_Exit (void);

void thr_mgr (ACE_Thread_Manager *tm);

~ACE_Thread_Exit (void);

static ACE_Thread_Exit *instance (void);

static void cleanup (void *instance, void *);

PRIVATE MEMBERS

ACE_Thread_Control thread_control_;

AUTHOR

Doug Schmidt schmidt@cs.wustl.edu, Jesper S. M|ller stophph@diku.dk, and a cast of thousands...

The ACE_Sched_Priority type should be used for platform-

independent thread and process priorities, by convention. int should be used for OS-specific priorities.

typedef for the _stat data structure

Giving unique ACE scoped names for some important

RTSignal-Related constants. Becuase sometimes, different platforms use different names for these constants.

LIBRARY

ace