NetSurf
|
Go to the source code of this file.
Functions | |
nserror | monkey_schedule (int tival, void(*callback)(void *p), void *p) |
Schedule a callback. More... | |
int | monkey_schedule_run (void) |
Process scheduled callbacks up to current time. More... | |
void | monkey_schedule_list (void) |
Log a list of all scheduled callbacks. More... | |
nserror monkey_schedule | ( | int | tival, |
void(*)(void *p) | callback, | ||
void * | p | ||
) |
Schedule a callback.
tival | interval before the callback should be made in ms |
callback | callback function |
p | user parameter, passed to callback function |
The callback function will be called as soon as possible after t ms have passed.
Definition at line 100 of file schedule.c.
References nscallback::callback, nscallback::next, NSERROR_OK, NSLOG, nscallback::p, schedule_list, schedule_remove(), timeradd, and nscallback::tv.
void monkey_schedule_list | ( | void | ) |
Log a list of all scheduled callbacks.
Definition at line 200 of file schedule.c.
References nscallback::next, NSLOG, schedule_list, and nscallback::tv.
int monkey_schedule_run | ( | void | ) |
Process scheduled callbacks up to current time.
Definition at line 133 of file schedule.c.
References nscallback::callback, nscallback::next, NSLOG, nscallback::p, schedule_list, timercmp, timersub, and nscallback::tv.
Referenced by monkey_run().