GFXprim
2D bitmap graphics library with emphasis on speed and correctness
|
A timer. More...
#include <gp_timer.h>
Data Fields | |
uint64_t | expires |
const char * | id |
uint32_t | period |
uint32_t | running:1 |
uint32_t | in_callback:1 |
uint32_t | res_in_callback:1 |
uint32_t(* | callback )(struct gp_timer *self) |
Timer callback. | |
void * | priv |
A timer.
Definition at line 26 of file gp_timer.h.
uint32_t(* gp_timer::callback) (struct gp_timer *self) |
Timer callback.
Unless GP_TIMER_STOP is returned the timer is rescheduled to expire return value from now.
Definition at line 57 of file gp_timer.h.
uint64_t gp_timer::expires |
Expiration time, set by user, modified by the queue
Definition at line 33 of file gp_timer.h.
const char* gp_timer::id |
Timer name showed in debug messages
Definition at line 36 of file gp_timer.h.
uint32_t gp_timer::in_callback |
Set during the run of the timer callback
Definition at line 44 of file gp_timer.h.
uint32_t gp_timer::period |
User variable may be used to store the timer period
Definition at line 39 of file gp_timer.h.
void* gp_timer::priv |
A user private pointer
Definition at line 59 of file gp_timer.h.
uint32_t gp_timer::res_in_callback |
Set if timer was reschedulled from callback
Definition at line 46 of file gp_timer.h.
uint32_t gp_timer::running |
Set if timer is inserted into a queue
Definition at line 42 of file gp_timer.h.
Referenced by gp_timer_running().