Lely core libraries  2.2.5
timer.h
Go to the documentation of this file.
1 
29 #ifndef LELY_IO2_USER_TIMER_H_
30 #define LELY_IO2_USER_TIMER_H_
31 
32 #include <lely/io2/timer.h>
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
45 typedef void io_user_timer_setnext_t(const struct timespec *tp, void *arg);
46 
47 void *io_user_timer_alloc(void);
48 void io_user_timer_free(void *ptr);
49 io_timer_t *io_user_timer_init(io_timer_t *timer, io_ctx_t *ctx,
50  ev_exec_t *exec, io_user_timer_setnext_t *func, void *arg);
51 void io_user_timer_fini(io_timer_t *timer);
52 
68  io_user_timer_setnext_t *func, void *arg);
69 
72 
73 #ifdef __cplusplus
74 }
75 #endif
76 
77 #endif // !LELY_IO2_USER_TIMER_H_
const struct ev_exec_vtbl *const ev_exec_t
An abstract task executor.
Definition: ev.h:29
io_timer_t * io_user_timer_create(io_ctx_t *ctx, ev_exec_t *exec, io_user_timer_setnext_t *func, void *arg)
Creates a new user-defined timer.
Definition: timer.c:204
Definition: ctx.c:35
This header file is part of the I/O library; it contains the abstract timer interface.
void io_user_timer_setnext_t(const struct timespec *tp, void *arg)
The type of function invoked by a user-defined timer when the expiration time is updated with io_time...
Definition: timer.h:45
void io_user_timer_destroy(io_timer_t *timer)
Destroys a user-defined timer.
Definition: timer.c:232
const struct io_timer_vtbl *const io_timer_t
An abstract timer.
Definition: timer.h:38