diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-06-02 06:23:09 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-06-02 06:23:09 +0000 |
commit | bed88a9e9b1637a4fffc4a0ba27a138fdce7f60d (patch) | |
tree | 689409ae3a062b8f19f3ba02838278726003559a /ace/Singleton.h | |
parent | a8d245fecc62ee2b62a3faa9538b74a2eaf993cd (diff) | |
download | ATCD-bed88a9e9b1637a4fffc4a0ba27a138fdce7f60d.tar.gz |
Reverted MP safe Double-checking modification. It doesn't solve the real problem here.
Diffstat (limited to 'ace/Singleton.h')
-rw-r--r-- | ace/Singleton.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/ace/Singleton.h b/ace/Singleton.h index 0e9b51cec40..f8bfa8ef8de 100644 --- a/ace/Singleton.h +++ b/ace/Singleton.h @@ -73,18 +73,10 @@ protected: #if !defined (ACE_LACKS_STATIC_DATA_MEMBER_TEMPLATES) static ACE_Singleton<TYPE, ACE_LOCK> *singleton_; // Pointer to the Singleton (ACE_Cleanup) instance. - - static int completion_flag_; - // A flag indicating the complete instantiation (and writing) of - // <singleton_>. By checking this flag instead of <singleton_> - // directly, we avoid the problem of Singleton not being MP safe. #endif /* ACE_LACKS_STATIC_DATA_MEMBER_TEMPLATES */ static ACE_Singleton<TYPE, ACE_LOCK> *&instance_i (void); // Get pointer to the Singleton instance. - - static int &completion_flag (void); - // Access the singleton completion status. }; template <class TYPE, class ACE_LOCK> @@ -127,18 +119,10 @@ protected: #if !defined (ACE_LACKS_STATIC_DATA_MEMBER_TEMPLATES) static ACE_TSS_Singleton<TYPE, ACE_LOCK> *singleton_; // Pointer to the Singleton (ACE_Cleanup) instance. - - static int completion_flag_; - // A flag indicating the complete instantiation (and writing) of - // <singleton_>. By checking this flag instead of <singleton_> - // directly, we avoid the problem of Singleton not being MP safe. #endif /* ACE_LACKS_STATIC_DATA_MEMBER_TEMPLATES */ static ACE_TSS_Singleton<TYPE, ACE_LOCK> *&instance_i (void); // Get pointer to the TSS Singleton instance. - - static int &completion_flag (void); - // Access the singleton completion status. }; #if defined (__ACE_INLINE__) |