diff options
Diffstat (limited to 'libglusterfs')
-rw-r--r-- | libglusterfs/src/event.h | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/libglusterfs/src/event.h b/libglusterfs/src/event.h index f2f8029aeaa..7ed182492e2 100644 --- a/libglusterfs/src/event.h +++ b/libglusterfs/src/event.h @@ -21,8 +21,8 @@ struct event_pool; struct event_ops; struct event_data { - int fd; - int idx; + int fd; + int idx; } __attribute__ ((__packed__, __may_alias__)); @@ -30,28 +30,27 @@ typedef int (*event_handler_t) (int fd, int idx, void *data, int poll_in, int poll_out, int poll_err); struct event_pool { - struct event_ops *ops; + struct event_ops *ops; - int fd; - int breaker[2]; + int fd; + int breaker[2]; - int count; - struct { - int fd; - int events; - void *data; - event_handler_t handler; - } *reg; + int count; + struct { + int fd; + int events; + void *data; + event_handler_t handler; + } *reg; - int used; - int idx_cache; - int changed; + int used; + int changed; - pthread_mutex_t mutex; - pthread_cond_t cond; + pthread_mutex_t mutex; + pthread_cond_t cond; - void *evcache; - int evcache_size; + void *evcache; + int evcache_size; }; struct event_ops { |