Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / tao / TSS_Resources.cpp
blob9f1d44141a608148b929d0b955d919eadadd2448
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)
21 , tsg_ (0)
22 #endif /* TAO_HAS_TRANSPORT_CURRENT */
26 TAO_TSS_Resources::~TAO_TSS_Resources (void)
28 delete this->gui_resource_factory_;
31 TAO_TSS_Resources *
32 TAO_TSS_Resources::instance (void)
34 // Hide the template instantiation to prevent multiple instances
35 // from being created.
36 return
37 TAO_TSS_Singleton<TAO_TSS_Resources, TAO_SYNCH_MUTEX>::instance ();
40 #if defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION)
41 template
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