summaryrefslogtreecommitdiff
path: root/TAO/tao/params.i
blob: 2def6c914ebae65c28780cb03ab185791bbc014f (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
ACE_INLINE
TAO_OA_Parameters::TAO_OA_Parameters (void)
  : using_threads_ (0),
    thread_flags_ (THR_NEW_LWP),
    context_p_ (0),
    upcall_ (0),
    forwarder_ (0),
    oa_ (0)
{
}

ACE_INLINE int
TAO_OA_Parameters::using_threads (void)
{
  return using_threads_;
}

ACE_INLINE void
TAO_OA_Parameters::using_threads (int i)
{
  using_threads_ = i;
}

ACE_INLINE void *
TAO_OA_Parameters::context (void)
{
  return context_p_;
}

ACE_INLINE void
TAO_OA_Parameters::context (void* p)
{
  context_p_ = p;
}

ACE_INLINE TAO_OA_Parameters::UpcallFunc
TAO_OA_Parameters::upcall (void)
{
  return upcall_;
}

ACE_INLINE void
TAO_OA_Parameters::upcall (TAO_OA_Parameters::UpcallFunc f)
{
  upcall_ = f;
}

ACE_INLINE TAO_OA_Parameters::ForwardFunc
TAO_OA_Parameters::forwarder (void)
{
  return forwarder_;
}

ACE_INLINE void
TAO_OA_Parameters::forwarder (TAO_OA_Parameters::ForwardFunc f)
{
  forwarder_ = f;
}

ACE_INLINE CORBA_BOA_ptr
TAO_OA_Parameters::oa (void)
{
  return oa_;
}

ACE_INLINE void
TAO_OA_Parameters::oa (CORBA_BOA_ptr anOA)
{
  oa_ = anOA;
}

ACE_INLINE u_int
TAO_OA_Parameters::thread_flags (void)
{
  return thread_flags_;
}

ACE_INLINE void
TAO_OA_Parameters::thread_flags (u_int f)
{
  thread_flags_ = f;
}

ACE_INLINE void
TAO_OA_Parameters::addr (ACE_INET_Addr &addr)
{
  this->addr_ = addr;
}

ACE_INLINE ACE_INET_Addr
TAO_OA_Parameters::addr (void)
{
  return this->addr_;
}

ACE_INLINE void
TAO_OA_Parameters::demux_strategy (DEMUX_STRATEGY strategy)
{
  this->demux_ = strategy;      // Trust that the value is valid!
}

ACE_INLINE TAO_OA_Parameters::DEMUX_STRATEGY
TAO_OA_Parameters::demux_strategy (void)
{
  return this->demux_;
}

ACE_INLINE void
TAO_OA_Parameters::tablesize (CORBA_ULong tblsize)
{
  this->tablesize_ = tblsize;
}

ACE_INLINE CORBA_ULong
TAO_OA_Parameters::tablesize (void)
{
  return this->tablesize_;
}

ACE_INLINE void 
TAO_OA_Parameters::userdef_lookup_strategy (TAO_Object_Table *&ot)
{
  // provide a way for user defined object key lookup strategies to be plugged
  // in
  ot_ = ot;
  ot = 0;  // we own it now
}

ACE_INLINE TAO_Object_Table *
TAO_OA_Parameters::userdef_lookup_strategy (void)
{
  // return the lookup strategy
  return ot_;
}

ACE_INLINE TAO_OA_Parameters *&
TAO_OA_Parameters::instance_i (void)
{
  return TAO_OA_Parameters::instance_;
}

ACE_INLINE ACE_SYNCH_MUTEX &
TAO_OA_Parameters::singleton_lock_i (void)
{
  return TAO_OA_Parameters::ace_singleton_lock_;
}