117 if (isFlagSet(
AutoDelete) && _globalEvent->barrierEvent[0] ==
this) {
120 _globalEvent->barrierEvent[0] = NULL;
130 if (globalBarrier()) {
131 _globalEvent->process();
144 if (globalBarrier()) {
145 _globalEvent->process();
165 return "GlobalSyncEvent";
Global events and related declarations.
vector< EventQueue * > mainEventQueue
Array for main event queues.
static const FlagsType AutoDelete
Tick curTick()
The current simulated tick.
Queue of events sorted in time order.
uint64_t Tick
Tick count type.
EventQueue * curEventQueue()
const char * description() const
static std::mutex globalQMutex
Mutex variable for providing exculsive right to schedule global events.
void handleAsyncInsertions()
Function for moving events from the async_queue to the main queue.
void reschedule(Tick when)
uint32_t numMainEventQueues
Current number of allocated main event queues.
BaseGlobalEvent(Priority p, Flags f)
virtual ~BaseGlobalEvent()
std::vector< BarrierEvent * > barrierEvent
The individual local event instances (one per thread/event queue).