sim_events.cc (7492:acc1fbbef239) sim_events.cc (7819:afe8476ee9e9)
1/*
2 * Copyright (c) 2002-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;

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

73
74const char *
75SimLoopExitEvent::description() const
76{
77 return "simulation loop exit";
78}
79
80void
1/*
2 * Copyright (c) 2002-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;

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

73
74const char *
75SimLoopExitEvent::description() const
76{
77 return "simulation loop exit";
78}
79
80void
81exitSimLoop(const std::string &message, int exit_code)
81exitSimLoop(const std::string &message, int exit_code, Tick when, Tick repeat)
82{
82{
83 Event *event = new SimLoopExitEvent(message, exit_code);
84 mainEventQueue.schedule(event, curTick);
83 Event *event = new SimLoopExitEvent(message, exit_code, repeat);
84 mainEventQueue.schedule(event, when);
85}
86
87CountedDrainEvent::CountedDrainEvent()
88 : SimLoopExitEvent("Finished drain", 0), count(0)
89{ }
90
91void
92CountedDrainEvent::process()

--- 66 unchanged lines hidden ---
85}
86
87CountedDrainEvent::CountedDrainEvent()
88 : SimLoopExitEvent("Finished drain", 0), count(0)
89{ }
90
91void
92CountedDrainEvent::process()

--- 66 unchanged lines hidden ---