eventq.hh (5605:b194a80157e2) eventq.hh (5738:6ea35903c420)
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;

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

294 public:
295 EventQueue(const std::string &n)
296 : objName(n), head(NULL)
297 {}
298
299 virtual const std::string name() const { return objName; }
300
301 // schedule the given event on this queue
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;

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

294 public:
295 EventQueue(const std::string &n)
296 : objName(n), head(NULL)
297 {}
298
299 virtual const std::string name() const { return objName; }
300
301 // schedule the given event on this queue
302 void schedule(Event *ev, Tick when);
303 void deschedule(Event *ev);
304 void reschedule(Event *ev, Tick when, bool always = false);
302 void schedule(Event *event, Tick when);
303 void deschedule(Event *event);
304 void reschedule(Event *event, Tick when, bool always = false);
305
306 Tick nextTick() const { return head->when(); }
307 Event *serviceOne();
308
309 // process all events up to the given timestamp. we inline a
310 // quick test to see if there are any events to process; if so,
311 // call the internal out-of-line version to process them all.
312 void

--- 223 unchanged lines hidden ---
305
306 Tick nextTick() const { return head->when(); }
307 Event *serviceOne();
308
309 // process all events up to the given timestamp. we inline a
310 // quick test to see if there are any events to process; if so,
311 // call the internal out-of-line version to process them all.
312 void

--- 223 unchanged lines hidden ---