summaryrefslogtreecommitdiff
path: root/ace/Object_Manager.h
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-03-03 03:17:03 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-03-03 03:17:03 +0000
commit66f85fd0ee63f1ce4e3137598892deff8fd1f047 (patch)
tree5bd12fb754c80f888b66b22cd60d0313035e94bc /ace/Object_Manager.h
parent0664f01a0104a2ac92e4b40795b53315b94a4f85 (diff)
downloadATCD-66f85fd0ee63f1ce4e3137598892deff8fd1f047.tar.gz
changed Object_Manager state to be per-instance, instead of global
Diffstat (limited to 'ace/Object_Manager.h')
-rw-r--r--ace/Object_Manager.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/ace/Object_Manager.h b/ace/Object_Manager.h
index 43640239d3d..48408c2a066 100644
--- a/ace/Object_Manager.h
+++ b/ace/Object_Manager.h
@@ -189,6 +189,22 @@ public:
// Explicitly destroy the singleton instance of the
// ACE_Object_Manager.
+ static int starting_up (void);
+ // Returns 1 before the ACE_Object_Manager has been constructed.
+ // This flag can be used to determine if the program is constructing
+ // static objects. If no static object spawns any threads, the
+ // program will be single-threaded when this flag returns 1. (Note
+ // that the program still might construct some static objects when
+ // this flag returns 0, if ACE_HAS_NONSTATIC_OBJECT_MANAGER is not
+ // defined.)
+
+ static int shutting_down (void);
+ // Returns 1 after the ACE_Object_Manager has been destroyed. This
+ // flag can be used to determine if the program is in the midst of
+ // destroying static objects. (Note that the program might destroy
+ // some static objects before this flag can return 1, if
+ // ACE_HAS_NONSTATIC_OBJECT_MANAGER is not defined.)
+
static int at_exit (ACE_Cleanup *object, void *param = 0);
// Register an ACE_Cleanup object for cleanup at process termination.
// The object is deleted via the ace_cleanup_destroyer (). If you