blob: 30d2613eb2d5c2fae0555ea8ac32ed0ce6093628 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
// $Id$
#include "TSS_Resources.h"
#include "GUIResource_Factory.h"
#include "TAO_Singleton.h"
ACE_RCSID (tao,
TSS_Resources,
"$Id$")
TAO_TSS_Resources::TAO_TSS_Resources (void)
: poa_current_impl_ (0)
, rtscheduler_current_impl_ (0)
, rtscheduler_previous_current_impl_ (0)
, default_environment_ (&this->tss_environment_)
#if (TAO_HAS_CORBA_MESSAGING == 1)
, policy_current_ (&this->initial_policy_current_)
#endif /* TAO_HAS_CORBA_MESSAGING == 1 */
, gui_resource_factory_ (0)
{
}
TAO_TSS_Resources::~TAO_TSS_Resources (void)
{
delete gui_resource_factory_;
}
TAO_TSS_Resources *
TAO_TSS_Resources::instance (void)
{
// Hide the template instantiation to prevent multiple instances
// from being created.
return
TAO_TSS_Singleton<TAO_TSS_Resources, TAO_SYNCH_MUTEX>::instance ();
}
#if defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION)
template
TAO_TSS_Singleton<TAO_TSS_Resources, TAO_SYNCH_MUTEX> *
TAO_TSS_Singleton<TAO_TSS_Resources, TAO_SYNCH_MUTEX>::singleton_;
#endif /* ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION */
|