Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Pause.C File Reference


Detailed Description

simple pause toggle

Definition in file Pause.C.

#include "Util/Pause.H"
#include "Util/log.H"
#include "rutz/atomic.h"
#include <unistd.h>

Include dependency graph for Pause.C:

Go to the source code of this file.

Functions

void setPause (bool on)
 Change in to or out of the paused state.
bool isPaused ()
 Check if we are in the paused state.

Variables

rutz::atomic_int_t status


Function Documentation

bool isPaused  ) 
 

Check if we are in the paused state.

Definition at line 58 of file Pause.C.

References rutz::mutex_atomic_int::atomic_get(), and status.

Referenced by PauseWaiter::checkPause().

void setPause bool  on  ) 
 

Change in to or out of the paused state.

Note that this actually does nothing itself; all it does is change the result of isPaused(). Individual applications can check isPaused() in their main loops and act accordingly; or, they equally well just ignore isPaused() if they don't care to pause.

Definition at line 53 of file Pause.C.

References rutz::mutex_atomic_int::atomic_set(), and status.

Referenced by submain(), and QtImageStack::togglePause().


Generated on Sun Nov 22 13:45:10 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4