diff options
author | nw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-08-13 08:36:35 +0000 |
---|---|---|
committer | nw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-08-13 08:36:35 +0000 |
commit | be52793509ce41300065f58b569f71c390c37ff8 (patch) | |
tree | 171fed718b4979e92ced3e39fe4792aafb20b1ca /ace/Synch.cpp | |
parent | 1d2235b9df44f212d8b5a9dbfb8e875972104a34 (diff) | |
download | ATCD-be52793509ce41300065f58b569f71c390c37ff8.tar.gz |
Conditionally compile registration of atexit routine.
Diffstat (limited to 'ace/Synch.cpp')
-rw-r--r-- | ace/Synch.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ace/Synch.cpp b/ace/Synch.cpp index 19e407f66e5..b65d69a8a4d 100644 --- a/ace/Synch.cpp +++ b/ace/Synch.cpp @@ -935,7 +935,8 @@ ACE_Static_Object_Lock::instance (void) { ACE_NEW_RETURN (ACE_Static_Object_Lock::mutex_, ACE_Recursive_Thread_Mutex, 0); -#if 0 /* This causes shutdown problems on DEC CXX, HP/UX, and AIX. +#if ! defined (ACE_HAS_BROKEN_ATEXIT) + /* On DEC CXX, HP/UX, and AIX. It should be done through the Object_Manager, but then all "statics" will have to play that game as well. */ #if defined (ACE_HAS_SIG_C_FUNC) @@ -943,7 +944,7 @@ ACE_Static_Object_Lock::instance (void) #else ::atexit (ACE_Static_Object_Lock::atexit); #endif -#endif /* 0 */ +#endif /* ACE_HAS_BROKEN_ATEXIT */ } return ACE_Static_Object_Lock::mutex_; } |