18 EventQueue *EventQueue::_global_event_queue =
nullptr;
25 EventQueue() : _lock(
"EventQueue::_lock") {
41 if (event->get_name().empty()) {
48 _queue.push_back(event);
49 if (event_cat.is_debug()) {
50 if (event->get_name() ==
"NewFrame") {
52 if (event_cat.is_spam()) {
54 <<
"Throwing event " << *
event <<
"\n";
58 <<
"Throwing event " << *
event <<
"\n";
78 is_queue_empty()
const {
80 return _queue.empty();
102 nassertr(!result.
is_null(), result);
110 make_global_event_queue() {
A ConstPointerTo is similar to a PointerTo, except it keeps a const pointer to the thing.
A queue of pending events.
bool is_queue_full() const
void clear()
Empties all events on the queue, throwing them on the floor.
Similar to MutexHolder, but for a light mutex.
constexpr bool is_null() const
Returns true if the PointerTo is a NULL pointer, false otherwise.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.