diff options
Diffstat (limited to 'libglusterfs/src/event.c')
-rw-r--r-- | libglusterfs/src/event.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/libglusterfs/src/event.c b/libglusterfs/src/event.c index 0197e7948b5..6c253df3c1a 100644 --- a/libglusterfs/src/event.c +++ b/libglusterfs/src/event.c @@ -32,10 +32,10 @@ struct event_pool * event_pool_new (int count) { struct event_pool *event_pool = NULL; - extern struct event_ops event_ops_poll; + extern struct event_ops event_ops_poll; #ifdef HAVE_SYS_EPOLL_H - extern struct event_ops event_ops_epoll; + extern struct event_ops event_ops_epoll; event_pool = event_ops_epoll.new (count); @@ -89,6 +89,20 @@ out: int +event_unregister_close (struct event_pool *event_pool, int fd, int idx) +{ + int ret = -1; + + GF_VALIDATE_OR_GOTO ("event", event_pool, out); + + ret = event_pool->ops->event_unregister_close (event_pool, fd, idx); + +out: + return ret; +} + + +int event_select_on (struct event_pool *event_pool, int fd, int idx_hint, int poll_in, int poll_out) { |