#include <Object_Manager_Base.h>
Public Types | |
enum | Preallocated_Object { ACE_OS_EMPTY_PREALLOCATED_OBJECT, ACE_OS_PREALLOCATED_OBJECTS } |
Unique identifiers for preallocated objects. More... | |
Public Member Functions | |
virtual int | init (void) |
Explicitly initialize. | |
virtual int | fini (void) |
Explicitly destroy. | |
ACE_OS_Object_Manager (void) | |
Constructor. | |
~ACE_OS_Object_Manager (void) | |
Destructor. | |
int | at_exit (ACE_EXIT_HOOK func) |
For <ACE_OS::atexit> support. | |
Static Public Member Functions | |
static int | starting_up (void) |
static int | shutting_down (void) |
static sigset_t * | default_mask (void) |
static ACE_Thread_Hook * | thread_hook (void) |
Returns the current thread hook for the process. | |
static ACE_Thread_Hook * | thread_hook (ACE_Thread_Hook *new_thread_hook) |
Returns the existing thread hook and assign a <new_thread_hook>. | |
static ACE_OS_Object_Manager * | instance (void) |
Accessor to singleton instance. | |
static void | print_error_message (unsigned int line_number, const ACE_TCHAR *message) |
For use by init () and fini (), to consolidate error reporting. | |
Public Attributes | |
sigset_t * | default_mask_ |
Default signal set used, for example, in ACE_Sig_Guard. | |
ACE_Thread_Hook * | thread_hook_ |
Thread hook that's used by this process. | |
ACE_OS_Exit_Info | exit_info_ |
For at_exit support. | |
Static Public Attributes | |
static ACE_OS_Object_Manager * | instance_ = 0 |
Singleton instance pointer. | |
static void * | preallocated_object [ACE_OS_PREALLOCATED_OBJECTS] = { 0 } |
Table of preallocated objects. | |
Friends | |
class | ACE_Object_Manager |
This class is for internal use by ACE_OS, etc., only. | |
class | ACE_OS_Object_Manager_Manager |
class | ACE_TSS_Cleanup |
class | ACE_TSS_Emulation |
class | ACE_Log_Msg |
void | ACE_OS_Object_Manager_Internal_Exit_Hook () |
ACE_OS_Object_Manager::ACE_OS_Object_Manager | ( | void | ) |
Constructor.
ACE_OS_Object_Manager::~ACE_OS_Object_Manager | ( | void | ) |
Destructor.
int ACE_OS_Object_Manager::init | ( | void | ) | [virtual] |
int ACE_OS_Object_Manager::fini | ( | void | ) | [virtual] |
int ACE_OS_Object_Manager::starting_up | ( | void | ) | [static] |
Returns 1 before the ACE_OS_Object_Manager has been constructed. See <ACE_Object_Manager::starting_up> for more information.
int ACE_OS_Object_Manager::shutting_down | ( | void | ) | [static] |
Returns 1 after the ACE_OS_Object_Manager has been destroyed. See <ACE_Object_Manager::shutting_down> for more information.
sigset_t * ACE_OS_Object_Manager::default_mask | ( | void | ) | [static] |
Accesses a default signal set used, for example, in ACE_Sig_Guard methods.
ACE_Thread_Hook * ACE_OS_Object_Manager::thread_hook | ( | void | ) | [static] |
Returns the current thread hook for the process.
ACE_Thread_Hook * ACE_OS_Object_Manager::thread_hook | ( | ACE_Thread_Hook * | new_thread_hook | ) | [static] |
Returns the existing thread hook and assign a <new_thread_hook>.
ACE_OS_Object_Manager * ACE_OS_Object_Manager::instance | ( | void | ) | [static] |
Accessor to singleton instance.
int ACE_OS_Object_Manager::at_exit | ( | ACE_EXIT_HOOK | func | ) |
For <ACE_OS::atexit> support.
void ACE_OS_Object_Manager::print_error_message | ( | unsigned int | line_number, | |
const ACE_TCHAR * | message | |||
) | [static] |
For use by init () and fini (), to consolidate error reporting.
friend class ACE_Object_Manager [friend] |
This class is for internal use by ACE_OS, etc., only.
friend class ACE_OS_Object_Manager_Manager [friend] |
friend class ACE_TSS_Cleanup [friend] |
friend class ACE_TSS_Emulation [friend] |
friend class ACE_Log_Msg [friend] |
void ACE_OS_Object_Manager_Internal_Exit_Hook | ( | ) | [friend] |
ACE_OS_Object_Manager * ACE_OS_Object_Manager::instance_ = 0 [static] |
Singleton instance pointer.
void * ACE_OS_Object_Manager::preallocated_object = { 0 } [static] |
Table of preallocated objects.
sigset_t* ACE_OS_Object_Manager::default_mask_ |
Default signal set used, for example, in ACE_Sig_Guard.
Thread hook that's used by this process.
For at_exit support.