Re: [Libevent-users] event_add from a different thread while event loop is running

2011-05-03 Thread D.P.
Yeah, I didn't use evthread_use_pthreads. It works as expected now. Thanks :) 2011/5/2 Nick Mathewson > On Mon, May 2, 2011 at 7:18 PM, D.P. wrote: > > Hi, I have a question regarding adding an event from a different thread > > (different from the one event_base

[Libevent-users] event_add from a different thread while event loop is running

2011-05-02 Thread D.P.
Hi, I have a question regarding adding an event from a different thread (different from the one event_base_dispatch was called). Initially I create an event_base, add a listener socket to it, and do event_base_dispatch. When a listener socket gets an incoming connection, it will add the new client