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;

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

77
78// See async.h.
79volatile bool async_event = false;
80volatile bool async_dump = false;
81volatile bool async_dumpreset = false;
82volatile bool async_exit = false;
83volatile bool async_io = false;
84volatile bool async_alarm = false;
85volatile bool async_exception = false;
86
87/// Stats signal handler.
88void
89dumpStatsHandler(int sigtype)
90{
91 async_event = true;
92 async_dump = true;
93}

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

367 exitSimLoop("user interrupt received");
368 }
369
370 if (async_io || async_alarm) {
371 async_io = false;
372 async_alarm = false;
373 pollQueue.service();
374 }
375
376 if (async_exception) {
377 async_exception = false;
378 return NULL;
379 }
380 }
381 }
382
383 // not reached... only exit is return on SimLoopExitEvent
384}
385
386Event *
387createCountedDrain()

--- 86 unchanged lines hidden ---