#include "tpool_event_if.h"
#include "dp_util.h"
#include <ev.h>
#include <unistd.h>
#include <sys/eventfd.h>
Go to the source code of this file.
|
static int | convert_etpoll_eveid2own (int eventflag) |
|
static int | convert_etpoll_own2eveid (int eventflag) |
|
static int | event_if_is_stop (EventLibevManager this) |
|
static void | event_if_subscribe_cb (EV_P_ ev_io *w, int revents) |
|
static void | event_if_libev_handler_init (EventLibevManager base, EventLibevHandler handler, EventSubscriber subscriber, void *arg) |
|
|
EventInstance | event_if_new (void) |
| event new More...
|
|
EventHandler | event_if_add (EventInstance this, EventSubscriber subscriber, void *arg) |
| add new event More...
|
|
void * | event_if_update (EventInstance this, EventHandler handler, EventSubscriber subscriber, void *arg) |
| update registered event More...
|
|
void | event_if_del (EventInstance this, EventHandler handler) |
| delete event More...
|
|
int | event_if_getfd (EventHandler handler) |
| get fd related to handler More...
|
|
int | event_if_loop (EventInstance this) |
| main loop to wait event More...
|
|
void | event_if_loopbreak (EventInstance this) |
| break event More...
|
|
void | event_if_exit (EventInstance this) |
| exit after main loop More...
|
|
void | event_if_free (EventInstance this) |
| free event if instance More...
|
|
◆ event_libev_handler_t
◆ EventLibevHandler
◆ EventLibevManager
◆ convert_etpoll_eveid2own()
static int convert_etpoll_eveid2own |
( |
int |
eventflag | ) |
|
|
inlinestatic |
◆ convert_etpoll_own2eveid()
static int convert_etpoll_own2eveid |
( |
int |
eventflag | ) |
|
|
inlinestatic |
◆ event_if_add()
◆ event_if_del()
delete event
delete event handler related to fd
Definition at line 151 of file event_if_libev.c.
◆ event_if_exit()
exit after main loop
exit instances for loop, if plugin want.
Definition at line 179 of file event_if_libev.c.
◆ event_if_free()
◆ event_if_getfd()
get fd related to handler
- Parameters
-
[in] | handler | EventHandler instance returned at event_if_add. |
- Returns
- fd
Definition at line 160 of file event_if_libev.c.
◆ event_if_is_stop()
◆ event_if_libev_handler_init()
◆ event_if_loop()
main loop to wait event
main loop, start to watch event
Definition at line 165 of file event_if_libev.c.
◆ event_if_loopbreak()
◆ event_if_new()
◆ event_if_subscribe_cb()
static void event_if_subscribe_cb |
( |
EV_P_ ev_io * |
w, |
|
|
int |
revents |
|
) |
| |
|
static |
◆ event_if_update()
update registered event
update event handler related to fd
Definition at line 136 of file event_if_libev.c.