26 _max_queue_size = max_size;
36 return _max_queue_size;
46 int size = _things.size();
58 return _overflow_flag;
68 _overflow_flag =
false;
78 _max_queue_size = get_net_max_response_queue();
79 _overflow_flag =
false;
108 template<
class Thing>
112 if (_things.empty()) {
118 result = _things.front();
120 _available = !_things.empty();
128 template<
class Thing>
132 bool enqueue_ok = ((int)_things.size() < _max_queue_size);
134 _things.push_back(thing);
136 _overflow_flag =
true;
149 template<
class Thing>
153 bool enqueue_ok = ((int)_things.size() < _max_queue_size);
155 if (find(_things.begin(), _things.end(), thing) == _things.end()) {
157 _things.push_back(thing);
164 _overflow_flag =
true;