include/razorback/timer.h File Reference

Portable timers. More...

#include <razorback/visibility.h>
#include <razorback/types.h>
#include <signal.h>
#include <time.h>
Include dependency graph for timer.h:

Go to the source code of this file.

Data Structures

struct  Timer
 Timer structure. More...

Functions

SO_PUBLIC struct TimerTimer_Create (uint32_t interval, void(*handler)(void *), void *userData)
 Create a timer.
SO_PUBLIC void Timer_Destroy (struct Timer *timer)
 Destroy a timer.

Detailed Description

Portable timers.


Function Documentation

SO_PUBLIC struct Timer* Timer_Create ( uint32_t  interval,
void(*)(void *)  handler,
void *  userData 
) [read]

Create a timer.

Parameters:
interval Timer interval in seconds.
handler Function poitner to the routine to run when the timer expires.
userData Pointer to data to be passed as the argument to handler when the timer expires.
Returns:
A new Timer or NULL on error.
SO_PUBLIC void Timer_Destroy ( struct Timer timer  ) 

Destroy a timer.

Parameters:
timer The Timer to stop and destroy.
 All Data Structures Files Functions Variables Enumerations Enumerator Defines
Generated on Sun Dec 9 04:00:11 2012 for RazorbackAPI by  doxygen 1.6.3