PauseWaiter Class Reference

Simple class to help main loops handle pause/unpause events. More...

#include <Util/Pause.H>

List of all members.

Public Member Functions

 PauseWaiter (const int usecs=50000)
 Constructor.
bool checkPause ()
 Check if we are in the paused state.

Detailed Description

Simple class to help main loops handle pause/unpause events.

Definition at line 52 of file Pause.H.


Constructor & Destructor Documentation

PauseWaiter::PauseWaiter ( const int  usecs = 50000  ) 

Constructor.

Parameters:
usecs how many microseconds to usleep() in each wait cycle

Definition at line 63 of file Pause.C.


Member Function Documentation

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().


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:43:38 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3