Functions | |
| int | ddekit_add_timer (void(*fn)(void *), void *args, unsigned long timeout) |
| Add a timer event. | |
| int | ddekit_del_timer (int timer) |
| Delete timer with the corresponding timer id. | |
| int | ddekit_timer_pending (int timer) |
| Check whether a timer is pending. | |
| void | ddekit_init_timers (void) |
| Initialization function, startup timer thread. | |
DDEKit provides a generic timer implementation that enables users to execute a function with some arguments after a certain period of time. DDEKit therefore starts a timer thread that executes these functions and keeps track of the currently running timers.
| int ddekit_add_timer | ( | void(*)(void *) | fn, | |
| void * | args, | |||
| unsigned long | timeout | |||
| ) |
Add a timer event.
After the absolute timeout has expired, function fn is called with args as arguments.
< 0 error
Definition at line 81 of file ddekit/src/timer.c.
| int ddekit_del_timer | ( | int | timer | ) |
| void ddekit_init_timers | ( | void | ) |
| int ddekit_timer_pending | ( | int | timer | ) |
Check whether a timer is pending.
Linux needs this.
Check whether a timer is pending.
| timer | Timer ID to check for. |
Definition at line 193 of file ddekit/src/timer.c.
1.5.6