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; --- 452 unchanged lines hidden (view full) --- 461 EventWrapper(T *obj, bool del = false, Priority p = Default_Pri) 462 : Event(p), object(obj) 463 { 464 if (del) 465 setFlags(AutoDelete); 466 } 467 468 void process() { (object->*F)(); } |
469 470 const std::string 471 name() const 472 { 473 return object->name() + ".wrapped_event"; 474 } 475 476 const char *description() const { return "EventWrapped"; } |
477}; 478 479inline void 480EventQueue::schedule(Event *event, Tick when) 481{ 482 assert((UTick)when >= (UTick)curTick); 483 assert(!event->scheduled()); 484#ifdef EVENTQ_DEBUG --- 101 unchanged lines hidden --- |