Classes | Defines | Functions
alarm.h File Reference
#include <signal.h>
Include dependency graph for alarm.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ScopedAlarmLock

Defines

#define SCOPE_ALARM_LOCK()   ScopedAlarmLock __alarm_lock__
#define SIGALRM   14

Functions

unsigned long initMainThread ()
void lockAlarm ()
void protectMainThread (bool)
void resetMainThread ()
int setAlarm (unsigned sec)
void setAlarmHandler (void(*f)(int))
void unlockAlarm ()

Define Documentation

#define SCOPE_ALARM_LOCK ( )    ScopedAlarmLock __alarm_lock__

Definition at line 68 of file alarm.h.

#define SIGALRM   14

Definition at line 72 of file alarm.h.


Function Documentation

unsigned long initMainThread ( )

Definition at line 28 of file alarm.cpp.

void lockAlarm ( ) [inline]

Definition at line 59 of file alarm.h.

void protectMainThread ( bool  )

Definition at line 30 of file alarm.cpp.

void resetMainThread ( )

Definition at line 29 of file alarm.cpp.

int setAlarm ( unsigned  sec)

Definition at line 24 of file alarm.cpp.

void setAlarmHandler ( void(*)(int)  f)

Definition at line 21 of file alarm.cpp.

void unlockAlarm ( ) [inline]

Definition at line 60 of file alarm.h.



clasp
Author(s): Benjamin Kaufmann
autogenerated on Thu Aug 27 2015 12:41:40