ACE
6.3.3
|
#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 Types inherited from ACE_Object_Manager_Base | |
enum | Object_Manager_State { OBJ_MAN_UNINITIALIZED = 0, OBJ_MAN_INITIALIZING, OBJ_MAN_INITIALIZED, OBJ_MAN_SHUTTING_DOWN, OBJ_MAN_SHUT_DOWN } |
Public Member Functions | |
virtual int | init (void) |
Explicitly initialize. More... | |
virtual int | fini (void) |
Explicitly destroy. More... | |
ACE_OS_Object_Manager (void) | |
Constructor. More... | |
~ACE_OS_Object_Manager (void) | |
Destructor. More... | |
int | at_exit (ACE_EXIT_HOOK func, const char *name=0) |
For <ACE_OS::atexit> support. More... | |
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. More... | |
static ACE_Thread_Hook * | thread_hook (ACE_Thread_Hook *new_thread_hook) |
Returns the existing thread hook and assign a <new_thread_hook>. More... | |
static ACE_OS_Object_Manager * | instance (void) |
Accessor to singleton instance. More... | |
static void | print_error_message (unsigned int line_number, const ACE_TCHAR *message) |
For use by init () and fini (), to consolidate error reporting. More... | |
Public Attributes | |
sigset_t * | default_mask_ |
Default signal set used, for example, in ACE_Sig_Guard. More... | |
ACE_Thread_Hook * | thread_hook_ |
Thread hook that's used by this process. More... | |
ACE_OS_Exit_Info | exit_info_ |
For at_exit support. More... | |
Static Public Attributes | |
static ACE_OS_Object_Manager * | instance_ = 0 |
Singleton instance pointer. More... | |
static void * | preallocated_object [ACE_OS_PREALLOCATED_OBJECTS] = { 0 } |
Table of preallocated objects. More... | |
Friends | |
class | ACE_Object_Manager |
This class is for internal use by ACE_OS, etc., only. More... | |
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 () |
Additional Inherited Members | |
Protected Member Functions inherited from ACE_Object_Manager_Base | |
ACE_Object_Manager_Base (void) | |
Default constructor. More... | |
virtual | ~ACE_Object_Manager_Base (void) |
Destructor. More... | |
int | starting_up_i (void) |
int | shutting_down_i (void) |
Protected Attributes inherited from ACE_Object_Manager_Base | |
Object_Manager_State | object_manager_state_ |
State of the Object_Manager;. More... | |
bool | dynamically_allocated_ |
ACE_Object_Manager_Base * | next_ |
Link to next Object_Manager, for chaining. More... | |
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::at_exit | ( | ACE_EXIT_HOOK | func, |
const char * | name = 0 |
||
) |
For <ACE_OS::atexit> support.
|
static |
Accesses a default signal set used, for example, in ACE_Sig_Guard methods.
|
virtual |
Explicitly destroy.
Implements ACE_Object_Manager_Base.
|
virtual |
Explicitly initialize.
Implements ACE_Object_Manager_Base.
|
static |
Accessor to singleton instance.
|
static |
For use by init () and fini (), to consolidate error reporting.
|
static |
Returns 1 after the ACE_OS_Object_Manager has been destroyed. See <ACE_Object_Manager::shutting_down> for more information.
|
static |
Returns 1 before the ACE_OS_Object_Manager has been constructed. See <ACE_Object_Manager::starting_up> for more information.
|
static |
Returns the current thread hook for the process.
|
static |
Returns the existing thread hook and assign a <new_thread_hook>.
|
friend |
|
friend |
This class is for internal use by ACE_OS, etc., only.
|
friend |
|
friend |
|
friend |
|
friend |
sigset_t* ACE_OS_Object_Manager::default_mask_ |
Default signal set used, for example, in ACE_Sig_Guard.
ACE_OS_Exit_Info ACE_OS_Object_Manager::exit_info_ |
For at_exit support.
|
static |
Singleton instance pointer.
|
static |
Table of preallocated objects.
ACE_Thread_Hook* ACE_OS_Object_Manager::thread_hook_ |
Thread hook that's used by this process.