Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Dynamic.cpp

Go to the documentation of this file.
00001 #include "ace_pch.h"
00002 // Dynamic.cpp
00003 // $Id: Dynamic.cpp,v 1.1.1.4.2.1 2003/03/13 19:44:21 chad Exp $
00004 
00005 #include "ace/Dynamic.h"
00006 #include "ace/Singleton.h"
00007 #include "ace/Synch_T.h"
00008 
00009 #if !defined (__ACE_INLINE__)
00010 #include "ace/Dynamic.i"
00011 #endif /* __ACE_INLINE__ */
00012 
00013 ACE_RCSID(ace, Dynamic, "$Id: Dynamic.cpp,v 1.1.1.4.2.1 2003/03/13 19:44:21 chad Exp $")
00014 
00015 ACE_Dynamic::ACE_Dynamic (void)
00016   : is_dynamic_ (0)
00017 {
00018   ACE_TRACE ("ACE_Dynamic::ACE_Dynamic");
00019 }
00020 
00021 /* static */ ACE_Dynamic *
00022 ACE_Dynamic::instance (void)
00023 {
00024   return ACE_TSS_Singleton<ACE_Dynamic, ACE_SYNCH_NULL_MUTEX>::instance ();
00025 }
00026 
00027 #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
00028   template class ACE_TSS_Singleton<ACE_Dynamic, ACE_Null_Mutex>;
00029 # if (defined (ACE_HAS_THREADS) && (defined (ACE_HAS_THREAD_SPECIFIC_STORAGE) || defined (ACE_HAS_TSS_EMULATION)))
00030     template class ACE_TSS<ACE_Dynamic>;
00031 # endif /* ACE_HAS_THREADS && (ACE_HAS_THREAD_SPECIFIC_STORAGE || ACE_HAS_TSS_EMULATION) */
00032 
00033 #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
00034   #pragma instantiate ACE_TSS_Singleton<ACE_Dynamic, ACE_Null_Mutex>
00035 
00036 # if (defined (ACE_HAS_THREADS) && (defined (ACE_HAS_THREAD_SPECIFIC_STORAGE) || defined (ACE_HAS_TSS_EMULATION)))
00037     #pragma instantiate ACE_TSS<ACE_Dynamic>
00038 # endif /* ACE_HAS_THREADS && (ACE_HAS_THREAD_SPECIFIC_STORAGE || ACE_HAS_TSS_EMULATION) */
00039 
00040 #elif defined (__GNUC__) && (defined (_AIX) || defined (__hpux))
00041 template ACE_TSS_Singleton<ACE_Dynamic, ACE_Null_Mutex> *
00042   ACE_TSS_Singleton<ACE_Dynamic, ACE_Null_Mutex>::singleton_;
00043 
00044 #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */

Generated on Mon Jun 16 11:19:37 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002