1 #include "tao/TSS_Resources.h"
2 #include "tao/GUIResource_Factory.h"
3 #include "tao/TAO_Singleton.h"
5 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
7 TAO_TSS_Resources::TAO_TSS_Resources (void)
8 : poa_current_impl_ (0)
9 , rtscheduler_current_impl_ (0)
10 , rtscheduler_previous_current_impl_ (0)
11 , rtcorba_current_priority_ (-1) // RTCORBA::minPriority - 1
12 , default_environment_ (&tss_environment_
)
14 #if (TAO_HAS_CORBA_MESSAGING == 1)
16 , policy_current_ (&initial_policy_current_
)
18 #endif /* TAO_HAS_CORBA_MESSAGING == 1 */
19 , gui_resource_factory_ (0)
20 #if (TAO_HAS_TRANSPORT_CURRENT == 1)
22 #endif /* TAO_HAS_TRANSPORT_CURRENT */
26 TAO_TSS_Resources::~TAO_TSS_Resources (void)
28 delete this->gui_resource_factory_
;
32 TAO_TSS_Resources::instance (void)
34 // Hide the template instantiation to prevent multiple instances
35 // from being created.
37 TAO_TSS_Singleton
<TAO_TSS_Resources
, TAO_SYNCH_MUTEX
>::instance ();
40 #if defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION)
42 TAO_TSS_Singleton
<TAO_TSS_Resources
, TAO_SYNCH_MUTEX
> *
43 TAO_TSS_Singleton
<TAO_TSS_Resources
, TAO_SYNCH_MUTEX
>::singleton_
;
44 #endif /* ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION */
46 TAO_END_VERSIONED_NAMESPACE_DECL