Simple class to help main loops handle pause/unpause events. More...
#include <Util/Pause.H>
Public Member Functions | |
PauseWaiter (const int usecs=50000) | |
Constructor. | |
bool | checkPause () |
Check if we are in the paused state. |
Simple class to help main loops handle pause/unpause events.
Definition at line 52 of file Pause.H.
PauseWaiter::PauseWaiter | ( | const int | usecs = 50000 |
) |
bool PauseWaiter::checkPause | ( | ) |
Check if we are in the paused state.
Applications can use the return value to modify the behavior of their main loops accordingly.
Definition at line 69 of file Pause.C.
References isPaused().
Referenced by Simulation::run().