eventq.hh (8902:75b524b64c28) eventq.hh (8990:5d80de4bbf96)
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;

--- 502 unchanged lines hidden (view full) ---

511 assert(event->scheduled());
512 assert(event->initialized());
513
514 remove(event);
515
516 event->flags.clear(Event::Squashed);
517 event->flags.clear(Event::Scheduled);
518
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;

--- 502 unchanged lines hidden (view full) ---

511 assert(event->scheduled());
512 assert(event->initialized());
513
514 remove(event);
515
516 event->flags.clear(Event::Squashed);
517 event->flags.clear(Event::Scheduled);
518
519 if (event->flags.isSet(Event::AutoDelete))
520 delete event;
521
522 if (DTRACE(Event))
523 event->trace("descheduled");
519 if (DTRACE(Event))
520 event->trace("descheduled");
521
522 if (event->flags.isSet(Event::AutoDelete))
523 delete event;
524}
525
526inline void
527EventQueue::reschedule(Event *event, Tick when, bool always)
528{
529 // Typecasting Tick->Utick here since gcc
530 // complains about signed overflow
531 assert((UTick)when >= (UTick)curTick());

--- 73 unchanged lines hidden ---
524}
525
526inline void
527EventQueue::reschedule(Event *event, Tick when, bool always)
528{
529 // Typecasting Tick->Utick here since gcc
530 // complains about signed overflow
531 assert((UTick)when >= (UTick)curTick());

--- 73 unchanged lines hidden ---