summaryrefslogtreecommitdiff
path: root/TAO/tao/params.i
diff options
context:
space:
mode:
authorChris Cleeland <chris.cleeland@gmail.com>1997-07-16 19:20:15 +0000
committerChris Cleeland <chris.cleeland@gmail.com>1997-07-16 19:20:15 +0000
commit42d9138a4e4f39543882fff83373984133d92516 (patch)
tree9d0975e139786eec2dafcc7e08be45b8ea9cc3bf /TAO/tao/params.i
parent0cf3094dc77e980fac58259d50fdb4d1037ec9d1 (diff)
downloadATCD-42d9138a4e4f39543882fff83373984133d92516.tar.gz
Fixed TAO_OA_Parameters singleton lock problem.
Diffstat (limited to 'TAO/tao/params.i')
-rw-r--r--TAO/tao/params.i16
1 files changed, 0 insertions, 16 deletions
diff --git a/TAO/tao/params.i b/TAO/tao/params.i
index 2a1934bee36..dd1933c89b4 100644
--- a/TAO/tao/params.i
+++ b/TAO/tao/params.i
@@ -147,27 +147,11 @@ TAO_OA_Parameters::tablesize (void)
ACE_INLINE TAO_OA_Parameters *&
TAO_OA_Parameters::instance_i (void)
{
-#if defined (ACE_LACKS_STATIC_DATA_MEMBER_TEMPLATES)
- // Pointer to the Singleton instance. This works around a bug with
- // G++...
- static TAO_OA_Parameters *instance_ = 0;
-
- return instance_;
-#else
return TAO_OA_Parameters::instance_;
-#endif /* ACE_LACKS_STATIC_DATA_MEMBER_TEMPLATES */
}
ACE_INLINE ACE_SYNCH_MUTEX &
TAO_OA_Parameters::singleton_lock_i (void)
{
-#if defined (ACE_LACKS_STATIC_DATA_MEMBER_TEMPLATES)
- // ACE_SYNCH_MUTEX the creation of the singleton. This works around a
- // "feature" of G++... ;-)
- static ACE_SYNCH_MUTEX ace_singleton_lock_;
-
- return ace_singleton_lock_;
-#else
return TAO_OA_Parameters::ace_singleton_lock_;
-#endif /* ACE_LACKS_STATIC_DATA_MEMBER_TEMPLATES */
}