scheduler_recurrent_func_add
Last updated March 2020
Name
scheduler_recurrent_func_add — Registers a recurrent function and a closure for the master scheduler thread
Synopsis
#include "scheduler.h"
| void **scheduler_recurrent_func_add** ( | func, | |
| | closure); | |
Description
Registers a recurrent function and a closure for the master scheduler thread.
- func
-
The recurrent function to register for the master scheduler thread.
The following typedef applies to this data type:
typedef int (*RecurFunc) (void *closure, struct timeval * now); - closure
-
The closure to register for the master scheduler thread.
This function returns void.
This function may only be called in the Scheduler thread.
Warning
This function should only be called at startup.
See Also
Was this page helpful?