ACE_TSS_Singleton< TYPE, ACE_LOCK > Class Template ReferenceThis class uses the Adapter pattern to turn ordinary classes into Thread-specific Singletons optimized with the Double-Checked Locking optimization pattern. More...
Inheritance diagram for ACE_TSS_Singleton< TYPE, ACE_LOCK >:
![]()
Collaboration diagram for ACE_TSS_Singleton< TYPE, ACE_LOCK >:
![]()
Detailed Descriptiontemplate<class TYPE, class ACE_LOCK>
This class uses the Adapter pattern to turn ordinary classes into Thread-specific Singletons optimized with the Double-Checked Locking optimization pattern.
|
ACE_INLINE ACE_TSS_Singleton< TYPE, ACE_LOCK >::ACE_TSS_Singleton | ( | void | ) | [inline, protected] |
Default constructor.
ACE_TSS_Singleton< TYPE, ACE_LOCK >::ACE_TSS_Singleton | ( | const ACE_TSS_Singleton< TYPE, ACE_LOCK > & | ) | [protected] |
TYPE * ACE_TSS_Singleton< TYPE, ACE_LOCK >::instance | ( | void | ) | [inline, static] |
Global access point to the singleton.
Reimplemented in ACE_Unmanaged_TSS_Singleton< TYPE, ACE_LOCK >.
void ACE_TSS_Singleton< TYPE, ACE_LOCK >::cleanup | ( | void * | param = 0 |
) | [inline, virtual] |
Cleanup method, used by <ace_cleanup_destroyer> to destroy the singleton.
Reimplemented from ACE_Cleanup.
void ACE_TSS_Singleton< TYPE, ACE_LOCK >::dump | ( | void | ) | [inline, static] |
ACE_TSS_Singleton< TYPE, ACE_LOCK >::ACE_TSS_TYPE | ( | TYPE | ) | [protected] |
Contained instance.
void ACE_TSS_Singleton< TYPE, ACE_LOCK >::operator= | ( | const ACE_TSS_Singleton< TYPE, ACE_LOCK > & | ) | [protected] |
ACE_TSS_Singleton< TYPE, ACE_LOCK > *& ACE_TSS_Singleton< TYPE, ACE_LOCK >::instance_i | ( | void | ) | [inline, static, protected] |
Get pointer to the TSS Singleton instance.
Reimplemented in ACE_Unmanaged_TSS_Singleton< TYPE, ACE_LOCK >.
ACE_TSS_Singleton< TYPE, ACE_LOCK > * ACE_TSS_Singleton< TYPE, ACE_LOCK >::singleton_ = 0 [inline, static, protected] |
Pointer to the Singleton (ACE_Cleanup) instance.
Reimplemented in ACE_Unmanaged_TSS_Singleton< TYPE, ACE_LOCK >.