summaryrefslogtreecommitdiff
path: root/ace/OS.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-03-04 04:36:01 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-03-04 04:36:01 +0000
commit1e901caa5c3fd85b35cb5b995b7c0c2e9ed8dcc6 (patch)
tree93965b4494a4d96e2ef1871cc9d4acc5445a3d32 /ace/OS.cpp
parent0746df2896d0909524c04ba5db777d1dd9142fa0 (diff)
downloadATCD-1e901caa5c3fd85b35cb5b995b7c0c2e9ed8dcc6.tar.gz
added ACE_OS_Object_Manager::starting_up () and shutting_down (). (ACE_TSS_Cleanup::remove): replaced use of ACE_Object_Manager::shutting_down () with ACE_OS_Object_Manager::shutting_down ().
Diffstat (limited to 'ace/OS.cpp')
-rw-r--r--ace/OS.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/ace/OS.cpp b/ace/OS.cpp
index 743ac43154f..4ca273bea78 100644
--- a/ace/OS.cpp
+++ b/ace/OS.cpp
@@ -1809,7 +1809,7 @@ ACE_TSS_Cleanup::remove (ACE_thread_key_t key)
// Don't bother to check <in_use_> if the program is shutting
// down. Doing so will cause a new ACE_TSS object getting
// created again.
- if (!ACE_Object_Manager::shutting_down ()
+ if (!ACE_OS_Object_Manager::shutting_down ()
&& !in_use_->test_and_clear (info.key_))
--info.thread_count_;
@@ -6159,6 +6159,20 @@ ACE_OS_Object_Manager::fini (void)
return 0;
}
+int
+ACE_OS_Object_Manager::starting_up (void)
+{
+ return ACE_OS_Object_Manager::instance_ ?
+ instance_->starting_up_i () : 1;
+}
+
+int
+ACE_OS_Object_Manager::shutting_down (void)
+{
+ return ACE_OS_Object_Manager::instance_ ?
+ instance_->shutting_down_i () : 1;
+}
+
#if !defined (ACE_HAS_NONSTATIC_OBJECT_MANAGER)
class ACE_Export ACE_OS_Object_Manager_Manager
// = TITLE