15 #ifndef QUEUEDRETURN_H
16 #define QUEUEDRETURN_H
18 #include "pandabase.h"
20 #include "connectionListener.h"
21 #include "connection.h"
22 #include "netAddress.h"
23 #include "lightMutex.h"
25 #include "config_net.h"
26 #include "lightMutexHolder.h"
51 INLINE
bool thing_available()
const;
52 bool get_thing(Thing &thing);
54 bool enqueue_thing(
const Thing &thing);
55 bool enqueue_unique_thing(
const Thing &thing);
65 #include "queuedReturn.I"
bool get_overflow_flag() const
Returns true if the queue has overflowed since the last call to reset_overflow_flag() (implying that ...
int get_max_queue_size() const
Returns the maximum size the queue is allowed to grow to.
void reset_overflow_flag()
Resets the overflow flag so that get_overflow_flag() will return false until a new overflow occurs...
int get_current_queue_size() const
Returns the current number of things in the queue.
void set_max_queue_size(int max_size)
Sets the maximum size the queue is allowed to grow to.
This is the implementation of a family of things that queue up their return values for later retrieva...
This is a standard, non-reentrant mutex, similar to the Mutex class.