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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
// $Id$
#include "orbsvcs/Notify/Properties.h"
#include "orbsvcs/NotifyExtC.h"
#include "tao/debug.h"
#if ! defined (__ACE_INLINE__)
#include "orbsvcs/Notify/Properties.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID (Notify,
TAO_Notify_Properties,
"$Id$")
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
static TAO_Notify_Properties* properties = 0;
TAO_Notify_Properties::TAO_Notify_Properties (void)
: factory_ (0)
, builder_ (0)
, orb_(0)
, dispatching_orb_ (0)
, asynch_updates_ (0)
, allow_reconnect_ (false)
, separate_dispatching_orb_ (false)
, updates_ (1)
{
// In case no conf. file is specified, the EC will default to reactive concurrency.
NotifyExt::ThreadPoolParams tp_params =
{NotifyExt::CLIENT_PROPAGATED,0, 0, 0, 0, 0, 0, 0,0};
this->ec_qos_.length (1);
this->ec_qos_[0].name = CORBA::string_dup (NotifyExt::ThreadPool);
this->ec_qos_[0].value <<= tp_params;
if (TAO_debug_level > 1)
ACE_DEBUG ((LM_DEBUG, "in TAO_Properties ctos %x\n", this));
}
TAO_Notify_Properties::~TAO_Notify_Properties ()
{
}
TAO_Notify_Properties *
TAO_Notify_Properties::instance (void)
{
if (properties == 0)
{
// Hide the template instantiation to prevent multiple instances
// from being created.
properties = TAO_Singleton<TAO_Notify_Properties,
TAO_SYNCH_MUTEX>::instance ();
}
return properties;
}
void
TAO_Notify_Properties::instance (TAO_Notify_Properties* props)
{
properties = props;
}
TAO_END_VERSIONED_NAMESPACE_DECL
|