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_spam() || event_cat.is_debug()) {
50 if (event->get_name() ==
"NewFrame") {
53 <<
"Throwing event " << *
event <<
"\n";
56 <<
"Throwing event " << *
event <<
"\n";
76 is_queue_empty()
const {
78 return _queue.empty();
100 nassertr(!result.
is_null(), result);
108 make_global_event_queue() {
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
bool is_queue_full() const
This function is deprecated–the queue is never full these days.
constexpr bool is_null() const
Returns true if the PointerTo is a NULL pointer, false otherwise.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A queue of pending events.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Similar to MutexHolder, but for a light mutex.
void clear()
Empties all events on the queue, throwing them on the floor.
A ConstPointerTo is similar to a PointerTo, except it keeps a const pointer to the thing.