summaryrefslogtreecommitdiff
path: root/ACE/examples/ASX/Event_Server/Event_Server/Options.inl
blob: f6a109c05dcf4a96361bb2ab614fc40b4b3896bd (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
/* -*- C++ -*- */
// $Id$

/* Option manager for ustreams */

// Since this is only included in Options.h these should stay
// inline, not ACE_INLINE.
// FUZZ: disable check_for_inline

inline void
Options::supplier_port (u_short port)
{
  this->supplier_port_ = port;
}

inline u_short
Options::supplier_port (void)
{
  return this->supplier_port_;
}

inline void
Options::consumer_port (u_short port)
{
  this->consumer_port_ = port;
}

inline u_short
Options::consumer_port (void)
{
  return this->consumer_port_;
}

inline void
Options::start_timer (void)
{
  this->itimer_.start ();
}

inline void
Options::stop_timer (void)
{
  this->itimer_.stop ();
}

inline void
Options::thr_count (size_t count)
{
  this->thr_count_ = count;
}

inline size_t
Options::thr_count (void)
{
  return this->thr_count_;
}

inline void
Options::initial_queue_length (size_t length)
{
  this->initial_queue_length_ = length;
}

inline size_t
Options::initial_queue_length (void)
{
  return this->initial_queue_length_;
}

inline void
Options::high_water_mark (size_t size)
{
  this->high_water_mark_ = size;
}

inline size_t
Options::high_water_mark (void)
{
  return this->high_water_mark_;
}

inline void
Options::low_water_mark (size_t size)
{
  this->low_water_mark_ = size;
}

inline size_t
Options::low_water_mark (void)
{
  return this->low_water_mark_;
}

inline void
Options::message_size (size_t size)
{
  this->message_size_ = size;
}

inline size_t
Options::message_size (void)
{
  return this->message_size_;
}

inline void
Options::iterations (size_t n)
{
  this->iterations_ = n;
}

inline size_t
Options::iterations (void)
{
  return this->iterations_;
}

inline void
Options::t_flags (long flag)
{
  this->t_flags_ |= flag;
}

inline long
Options::t_flags (void)
{
  return this->t_flags_;
}

inline int
Options::debug (void)
{
  return this->debugging_;
}

inline int
Options::verbose (void)
{
  return this->verbosity_;
}