71,81c71,80
< static const FlagsType PublicRead = 0x003f;
< static const FlagsType PublicWrite = 0x001d;
< static const FlagsType Squashed = 0x0001;
< static const FlagsType Scheduled = 0x0002;
< static const FlagsType AutoDelete = 0x0004;
< static const FlagsType AutoSerialize = 0x0008;
< static const FlagsType IsExitEvent = 0x0010;
< static const FlagsType IsMainQueue = 0x0020;
< #ifdef EVENTQ_DEBUG
< static const FlagsType Initialized = 0xf000;
< #endif
---
> static const FlagsType PublicRead = 0x003f; // public readable flags
> static const FlagsType PublicWrite = 0x001d; // public writable flags
> static const FlagsType Squashed = 0x0001; // has been squashed
> static const FlagsType Scheduled = 0x0002; // has been scheduled
> static const FlagsType AutoDelete = 0x0004; // delete after dispatch
> static const FlagsType AutoSerialize = 0x0008; // must be serialized
> static const FlagsType IsExitEvent = 0x0010; // special exit event
> static const FlagsType IsMainQueue = 0x0020; // on main event queue
> static const FlagsType Initialized = 0x7a40; // somewhat random bits
> static const FlagsType InitMask = 0xffc0; // mask for init bits
82a82,87
> bool
> initialized() const
> {
> return this && (flags & InitMask) == Initialized;
> }
>
149c154
< assert(flags.noneSet(~PublicRead));
---
> assert(_flags.noneSet(~PublicRead));
245c250
< : nextBin(NULL), nextInBin(NULL), _priority(p)
---
> : nextBin(NULL), nextInBin(NULL), _priority(p), flags(Initialized)
252d256
< flags.set(Initialized);
481,483c485
< #ifdef EVENTQ_DEBUG
< assert((event->flags & Event::Initialized) == Event::Initialized);
< #endif
---
> assert(event->initialized());
501,503c503
< #ifdef EVENTQ_DEBUG
< assert((event->flags & Event::Initialized) == Event::Initialized);
< #endif
---
> assert(event->initialized());
522,524c522
< #ifdef EVENTQ_DEBUG
< assert((event->flags & Event::Initialized) == Event::Initialized);
< #endif
---
> assert(event->initialized());