main.cc (2797:b5f26b4eacef) main.cc (2839:d5dd8a3cdea0)
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 *
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 *
526createCountedQuiesce()
526createCountedDrain()
527{
527{
528 return new CountedQuiesceEvent();
528 return new CountedDrainEvent();
529}
530
531void
529}
530
531void
532cleanupCountedQuiesce(Event *counted_quiesce)
532cleanupCountedDrain(Event *counted_drain)
533{
533{
534 CountedQuiesceEvent *event =
535 dynamic_cast<CountedQuiesceEvent *>(counted_quiesce);
534 CountedDrainEvent *event =
535 dynamic_cast<CountedDrainEvent *>(counted_drain);
536 if (event == NULL) {
536 if (event == NULL) {
537 fatal("Called cleanupCountedQuiesce() on an event that was not "
538 "a CountedQuiesceEvent.");
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 ---
539 }
540 assert(event->getCount() == 0);
541 delete event;
542}
543
544void
545serializeAll()
546{

--- 50 unchanged lines hidden ---