eventq.cc (2667:fe64b8353b1c) | eventq.cc (4016:1d09f041eefa) |
---|---|
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 | 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 |
56Counter Event::instanceCounter = 0; 57 |
|
56void 57EventQueue::insert(Event *event) 58{ 59 if (head == NULL || event->when() < head->when() || 60 (event->when() == head->when() && 61 event->priority() <= head->priority())) { 62 event->next = head; 63 head = event; --- 206 unchanged lines hidden --- | 58void 59EventQueue::insert(Event *event) 60{ 61 if (head == NULL || event->when() < head->when() || 62 (event->when() == head->when() && 63 event->priority() <= head->priority())) { 64 event->next = head; 65 head = event; --- 206 unchanged lines hidden --- |