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
29extern "C" {
30#endif
31
32void *io_timer_alloc(void);
33void io_timer_free(void *ptr);
34io_timer_t *io_timer_init(io_timer_t *timer, io_poll_t *poll, ev_exec_t *exec,
35 clockid_t clockid);
36void io_timer_fini(io_timer_t *timer);
37
51 io_poll_t *poll, ev_exec_t *exec, clockid_t clockid);
52
54void io_timer_destroy(io_timer_t *timer);
55
56#ifdef __cplusplus
57}
58#endif
59
60#endif // !LELY_IO2_SYS_TIMER_H_
const struct ev_exec_vtbl *const ev_exec_t
An abstract task executor.
Definition ev.h:29
This header file is part of the I/O library; it contains system-dependent I/O initialization/finaliza...
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
void io_timer_destroy(io_timer_t *timer)
Destroys an I/O system timer.
Definition timer.c:270
This header file is part of the I/O library; it contains the abstract timer interface.
const struct io_timer_vtbl *const io_timer_t
An abstract timer.
Definition timer.h:38
An I/O polling interface.
Definition poll.c:51
int clockid_t
Used for clock ID type in the clock and timer functions.
Definition types.h:40