Lely core libraries  2.3.4
timer.h
Go to the documentation of this file.
1 
22 #ifndef LELY_IO2_SYS_TIMER_H_
23 #define LELY_IO2_SYS_TIMER_H_
24 
25 #include <lely/io2/sys/io.h>
26 #include <lely/io2/timer.h>
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 void *io_timer_alloc(void);
33 void io_timer_free(void *ptr);
34 io_timer_t *io_timer_init(io_timer_t *timer, io_poll_t *poll, ev_exec_t *exec,
35  clockid_t clockid);
36 void io_timer_fini(io_timer_t *timer);
37 
51  io_poll_t *poll, ev_exec_t *exec, clockid_t clockid);
52 
54 void io_timer_destroy(io_timer_t *timer);
55 
56 #ifdef __cplusplus
57 }
58 #endif
59 
60 #endif // !LELY_IO2_SYS_TIMER_H_
ev_exec_t
const struct ev_exec_vtbl *const ev_exec_t
An abstract task executor.
Definition: ev.h:29
timer.h
io_timer_create
io_timer_t * io_timer_create(io_poll_t *poll, ev_exec_t *exec, clockid_t clockid)
Creates a new I/O system timer.
Definition: timer.c:243
io.h
__io_poll
An I/O polling interface.
Definition: poll.c:51
io_timer_destroy
void io_timer_destroy(io_timer_t *timer)
Destroys an I/O system timer.
Definition: timer.c:270
io_timer_t
const struct io_timer_vtbl *const io_timer_t
An abstract timer.
Definition: timer.h:38