diff options
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_; } |