eventq.hh (6216:2f4020838149) | eventq.hh (6712:b95abe00dd9d) |
---|---|
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; --- 457 unchanged lines hidden (view full) --- 466 } 467 468 void process() { (object->*F)(); } 469}; 470 471inline void 472EventQueue::schedule(Event *event, Tick when) 473{ | 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; --- 457 unchanged lines hidden (view full) --- 466 } 467 468 void process() { (object->*F)(); } 469}; 470 471inline void 472EventQueue::schedule(Event *event, Tick when) 473{ |
474 assert(when >= curTick); | 474 assert((UTick)when >= (UTick)curTick); |
475 assert(!event->scheduled()); 476#ifdef EVENTQ_DEBUG 477 assert((event->flags & Event::Initialized) == Event::Initialized); 478#endif 479 480 event->setWhen(when, this); 481 insert(event); 482 event->flags.set(Event::Scheduled); --- 95 unchanged lines hidden --- | 475 assert(!event->scheduled()); 476#ifdef EVENTQ_DEBUG 477 assert((event->flags & Event::Initialized) == Event::Initialized); 478#endif 479 480 event->setWhen(when, this); 481 insert(event); 482 event->flags.set(Event::Scheduled); --- 95 unchanged lines hidden --- |