eventq.hh (7823:dac01f14f20f) eventq.hh (8186:d54b7775a6b0)
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;

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

481 {
482 eventq->reschedule(event, when, always);
483 }
484};
485
486inline void
487EventQueue::schedule(Event *event, Tick when)
488{
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;

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

481 {
482 eventq->reschedule(event, when, always);
483 }
484};
485
486inline void
487EventQueue::schedule(Event *event, Tick when)
488{
489 // Typecasting Tick->Utick here since gcc
490 // complains about signed overflow
489 assert((UTick)when >= (UTick)curTick());
490 assert(!event->scheduled());
491 assert(event->initialized());
492
493 event->setWhen(when, this);
494 insert(event);
495 event->flags.set(Event::Scheduled);
496 if (this == &mainEventQueue)

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

518
519 if (DTRACE(Event))
520 event->trace("descheduled");
521}
522
523inline void
524EventQueue::reschedule(Event *event, Tick when, bool always)
525{
491 assert((UTick)when >= (UTick)curTick());
492 assert(!event->scheduled());
493 assert(event->initialized());
494
495 event->setWhen(when, this);
496 insert(event);
497 event->flags.set(Event::Scheduled);
498 if (this == &mainEventQueue)

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

520
521 if (DTRACE(Event))
522 event->trace("descheduled");
523}
524
525inline void
526EventQueue::reschedule(Event *event, Tick when, bool always)
527{
526 assert(when >= curTick());
528 // Typecasting Tick->Utick here since gcc
529 // complains about signed overflow
530 assert((UTick)when >= (UTick)curTick());
527 assert(always || event->scheduled());
528 assert(event->initialized());
529
530 if (event->scheduled())
531 remove(event);
532
533 event->setWhen(when, this);
534 insert(event);

--- 65 unchanged lines hidden ---
531 assert(always || event->scheduled());
532 assert(event->initialized());
533
534 if (event->scheduled())
535 remove(event);
536
537 event->setWhen(when, this);
538 insert(event);

--- 65 unchanged lines hidden ---