NetSurf
Functions
schedule.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

nserror framebuffer_schedule (int tival, void(*callback)(void *p), void *p)
 Schedule a callback. More...
 
int schedule_run (void)
 Process scheduled callbacks up to current time. More...
 
void list_schedule (void)
 LOG all current scheduled events. More...
 

Function Documentation

◆ framebuffer_schedule()

nserror framebuffer_schedule ( int  tival,
void(*)(void *p)  callback,
void *  p 
)

Schedule a callback.

Parameters
tivalinterval before the callback should be made in ms
callbackcallback function
puser parameter, passed to callback function

The callback function will be called as soon as possible after t ms have passed.

Definition at line 95 of file schedule.c.

References nscallback::callback, nscallback::next, NSERROR_OK, NSLOG, nscallback::p, schedule_list, schedule_remove(), timeradd, and nscallback::tv.

Referenced by gui_window_start_throbber(), and throbber_advance().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ list_schedule()

void list_schedule ( void  )

LOG all current scheduled events.

Definition at line 210 of file schedule.c.

◆ schedule_run()

int schedule_run ( void  )

Process scheduled callbacks up to current time.

Returns
The number of milliseconds untill the next scheduled event or -1 for no event.

Process scheduled callbacks up to current time.

Returns
The number of miliseconds until the next scheduled event.

Definition at line 137 of file schedule.c.