XROAD
xroad_reactor_types.h
Go to the documentation of this file.
1 
6 #pragma once
7 
9 #include <sys/epoll.h>
10 
11 #ifdef __cplusplus
12 extern "C"
13 {
14 #endif
15 
18 {
22 
24 typedef struct xroad_epoll_callback_s
25 {
26  void* ctx;
27  int32_t fd;
28  int32_t internal_idx;
33  void (*on_event)(const struct epoll_event*);
35 
36 #ifdef __cplusplus
37 }
38 #endif
common epoll callback structure
Definition: xroad_reactor_types.h:25
int32_t fd
File descriptor. Used by both sides.
Definition: xroad_reactor_types.h:27
void * ctx
Additional context.
Definition: xroad_reactor_types.h:26
int32_t internal_idx
This field is in use by implementation.
Definition: xroad_reactor_types.h:28
void(* on_event)(const struct epoll_event *)
Definition: xroad_reactor_types.h:33
Reactor timestamps.
Definition: xroad_reactor_types.h:18
xroad_tsc_t before_event_cb
Time of staring current event processing.
Definition: xroad_reactor_types.h:20
xroad_tsc_t wake
Time of waking up from poll.
Definition: xroad_reactor_types.h:19
Definition: xroad_common_types.h:21
struct xroad_epoll_callback_s xroad_epoll_callback_t
common epoll callback structure
struct xroad_reactor_timestamps_s xroad_reactor_timestamps_t
Reactor timestamps.