static const FlagsType AutoSerialize = 0x0008;
static const FlagsType IsExitEvent = 0x0010;
static const FlagsType IsMainQueue = 0x0020;
+#ifdef EVENTQ_DEBUG
+ static const FlagsType Initialized = 0xf000;
+#endif
private:
// The event queue is now a linked list of linked lists. The
queue = NULL;
#endif
#ifdef EVENTQ_DEBUG
+ flags.set(Initialized);
whenCreated = curTick;
whenScheduled = 0;
#endif
{
assert(when >= curTick);
assert(!event->scheduled());
+#ifdef EVENTQ_DEBUG
+ assert((event->flags & Event::Initialized) == Event::Initialized);
+#endif
event->setWhen(when, this);
insert(event);
EventQueue::deschedule(Event *event)
{
assert(event->scheduled());
+#ifdef EVENTQ_DEBUG
+ assert((event->flags & Event::Initialized) == Event::Initialized);
+#endif
remove(event);
{
assert(when >= curTick);
assert(always || event->scheduled());
+#ifdef EVENTQ_DEBUG
+ assert((event->flags & Event::Initialized) == Event::Initialized);
+#endif
if (event->scheduled())
remove(event);