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; --- 509 unchanged lines hidden (view full) --- 518 } 519 } 520 } 521 522 // not reached... only exit is return on SimLoopExitEvent 523} 524 525Event * |
526createCountedDrain() |
527{ |
528 return new CountedDrainEvent(); |
529} 530 531void |
532cleanupCountedDrain(Event *counted_drain) |
533{ |
534 CountedDrainEvent *event = 535 dynamic_cast<CountedDrainEvent *>(counted_drain); |
536 if (event == NULL) { |
537 fatal("Called cleanupCountedDrain() on an event that was not " 538 "a CountedDrainEvent."); |
539 } 540 assert(event->getCount() == 0); 541 delete event; 542} 543 544void 545serializeAll() 546{ --- 50 unchanged lines hidden --- |