CoffeePi
Coffee machine control for Raspberry Pi
Functions | Variables
timer.cpp File Reference
#include <csignal>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <pthread.h>
#include <errno.h>
#include "global.h"
#include "timer.h"
#include "logger.h"

Functions

void timer_handler (int sig, siginfo_t *si, void *uc)
 this method is called by the system timer and handles the other timers More...
 
void initTimers (void)
 inits the system timer based on signals More...
 
void * nullThread (void *threadid)
 

Variables

int counter = 0
 
int timercnt = 10
 
timerfirstTimer = NULL
 
timerlastTimer = NULL
 

Function Documentation

void initTimers ( void  )

inits the system timer based on signals

void* nullThread ( void *  threadid)
void timer_handler ( int  sig,
siginfo_t *  si,
void *  uc 
)

this method is called by the system timer and handles the other timers

Variable Documentation

int counter = 0
timer* firstTimer = NULL
timer* lastTimer = NULL
int timercnt = 10