1/* 2 * Copyright (c) 2000-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 39 unchanged lines hidden (view full) --- 48// 49// Main Event Queue 50// 51// Events on this queue are processed at the *beginning* of each 52// cycle, before the pipeline simulation is performed. 53// 54EventQueue mainEventQueue("MainEventQueue"); 55 |
56#ifndef NDEBUG |
57Counter Event::instanceCounter = 0; |
58#endif |
59 60void 61EventQueue::insert(Event *event) 62{ 63 if (head == NULL || event->when() < head->when() || 64 (event->when() == head->when() && 65 event->priority() <= head->priority())) { 66 event->next = head; --- 207 unchanged lines hidden --- |