sim_events.cc (4762:c94e103c83ad) | sim_events.cc (5336:c7e21f4e5a2e) |
---|---|
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; --- 51 unchanged lines hidden (view full) --- 60 // but if you are doing this on intervals, don't forget to make another 61 if (repeat) { 62 schedule(curTick + repeat); 63 } 64} 65 66 67const char * | 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; --- 51 unchanged lines hidden (view full) --- 60 // but if you are doing this on intervals, don't forget to make another 61 if (repeat) { 62 schedule(curTick + repeat); 63 } 64} 65 66 67const char * |
68SimLoopExitEvent::description() | 68SimLoopExitEvent::description() const |
69{ 70 return "simulation loop exit"; 71} 72 73SimLoopExitEvent * 74schedExitSimLoop(const std::string &message, Tick when, Tick repeat, 75 EventQueue *q, int exit_code) 76{ --- 41 unchanged lines hidden (view full) --- 118{ 119 if (--downCounter == 0) { 120 exitSimLoop(cause, 0); 121 } 122} 123 124 125const char * | 69{ 70 return "simulation loop exit"; 71} 72 73SimLoopExitEvent * 74schedExitSimLoop(const std::string &message, Tick when, Tick repeat, 75 EventQueue *q, int exit_code) 76{ --- 41 unchanged lines hidden (view full) --- 118{ 119 if (--downCounter == 0) { 120 exitSimLoop(cause, 0); 121 } 122} 123 124 125const char * |
126CountedExitEvent::description() | 126CountedExitEvent::description() const |
127{ 128 return "counted exit"; 129} 130 131#ifdef CHECK_SWAP_CYCLES 132new CheckSwapEvent(&mainEventQueue, CHECK_SWAP_CYCLES); 133#endif 134 --- 13 unchanged lines hidden (view full) --- 148 cerr << "\a\aAborting Simulation! Inadequate swap space!\n\n"; 149 exitSimLoop("Lack of swap space"); 150 } 151 152 schedule(curTick + interval); 153} 154 155const char * | 127{ 128 return "counted exit"; 129} 130 131#ifdef CHECK_SWAP_CYCLES 132new CheckSwapEvent(&mainEventQueue, CHECK_SWAP_CYCLES); 133#endif 134 --- 13 unchanged lines hidden (view full) --- 148 cerr << "\a\aAborting Simulation! Inadequate swap space!\n\n"; 149 exitSimLoop("Lack of swap space"); 150 } 151 152 schedule(curTick + interval); 153} 154 155const char * |
156CheckSwapEvent::description() | 156CheckSwapEvent::description() const |
157{ 158 return "check swap"; 159} | 157{ 158 return "check swap"; 159} |