14 #ifndef QUEUEDRETURN_H 15 #define QUEUEDRETURN_H 48 INLINE
bool thing_available()
const;
49 bool get_thing(Thing &thing);
51 bool enqueue_thing(
const Thing &thing);
52 bool enqueue_unique_thing(
const Thing &thing);
bool get_overflow_flag() const
Returns true if the queue has overflowed since the last call to reset_overflow_flag() (implying that ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void reset_overflow_flag()
Resets the overflow flag so that get_overflow_flag() will return false until a new overflow occurs.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void set_max_queue_size(int max_size)
Sets the maximum size the queue is allowed to grow to.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
int get_current_queue_size() const
Returns the current number of things in the queue.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
int get_max_queue_size() const
Returns the maximum size the queue is allowed to grow to.