VLC 4.0.0-dev
Loading...
Searching...
No Matches
timer.c File Reference
Include dependency graph for timer.c:

Data Structures

struct  vlc_timer
 

Functions

static VOID CALLBACK timer_callback (PTP_CALLBACK_INSTANCE instance, PVOID context, PTP_TIMER t)
 
int vlc_timer_create (vlc_timer_t *id, void(*func)(void *), void *data)
 Initializes an asynchronous timer.
 
void vlc_timer_destroy (vlc_timer_t timer)
 Destroys an initialized timer.
 
void vlc_timer_schedule (vlc_timer_t timer, bool absolute, vlc_tick_t value, vlc_tick_t interval)
 Arms or disarms an initialized timer.
 
unsigned vlc_timer_getoverrun (vlc_timer_t timer)
 Fetches and resets the overrun counter for a timer.
 

Function Documentation

◆ timer_callback()

static VOID CALLBACK timer_callback ( PTP_CALLBACK_INSTANCE  instance,
PVOID  context,
PTP_TIMER  t 
)
static

References vlc_timer::data, and vlc_timer::func.

Referenced by vlc_timer_create().