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); > + case EVENT_LOOP_RETRIEVE: > + 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. Thanks, Yuan |