130 if (globalBarrier()) {
131 _globalEvent->process();
144 if (globalBarrier()) {
145 _globalEvent->process();
165 return "GlobalSyncEvent";
const char * description() const
Global events and related declarations.
bool isFlagSet(Flags _flags) const
vector< EventQueue * > mainEventQueue
Array for main event queues.
BaseGlobalEvent * _globalEvent
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()
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).