[sheepdog] [PATCH v2 1/2] lib: prioritize events for epoll() and enhance event loop

Liu Yuan namei.unix at gmail.com
Fri Dec 21 19:00:04 CET 2012

On 12/22/2012 01:23 AM, Hitoshi Mitake wrote:
> -			ei = (struct event_info *)events[i].data.ptr;
> -			ei->handler(ei->fd, events[i].events, ei->data);
> +				goto retrieve;

Simply go retrieve, won't this drop the already raised events in hands?
and you forgot the add description for EVENT_LOOP_XXX in source code.

Maybe you can write another prio_event_loop()? Then sheep calls
event_loop() and keeper calls prio_event_loop() might be better way.


More information about the sheepdog mailing list