question about ev_feed_event

Marc Lehmann schmorp at
Tue May 18 15:14:55 CEST 2010

On Mon, May 17, 2010 at 01:22:18PM -0700, Frank Kim <myglade at> wrote:
> I'm now implementing a program using libev on linux.  It is mainly
> using ev_feed_event to deliver custom events on a thread.
> But, the problem I'm faced with is that even though I sent feed event,
> the listener receives the event after 1 min. (exactly 60sec).
> Currently, other events are not set.  I made async object (ev++.h)
> (this is used between threads) and using async object, sent feed event
> to listener of the same thread, which finally called ev_feed_event.
> I'm wondering why the feed event is not delivered immediately after
> sending.  Async event is delivered immediately.
> Is there anything I miss?

You probably need to show code - but ev_feed_event does not cause the
event loop to iterate again, if you want to force that, you'd need to
start an idle watcher, or feed events before event processing, or use an
event at the same or lower priority.

                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_    
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at
      -=====/_/_//_/\_,_/ /_/\_\

More information about the libev mailing list