Re: [Libevent-users] about exit when using flag EVLOOP_NO_EXIT_ON_EMPTY

2012-07-11 Thread Nick Mathewson
On Sun, Jul 8, 2012 at 8:07 AM, debuguo wrote: > " enable threading before creating your event base " > could you explain more about it? Have a look at the "Locks and threading" section of http://www.wangafu.net/~nickm/libevent-book/Ref1_libsetup.html Excerpt: = To get locking in Libeven

Re: [Libevent-users] about exit when using flag EVLOOP_NO_EXIT_ON_EMPTY

2012-07-08 Thread debuguo
" enable threading before creating your event base " could you explain more about it? 2012/7/8 Nick Mathewson > On Sat, Jul 7, 2012 at 6:50 AM, debuguo wrote: > > Hello, everyone. > > I noticed one new feature added in libevent 2.1, which was the flag of > > event_base_new, EVLOOP_NO_EXIT_ON_EM

Re: [Libevent-users] about exit when using flag EVLOOP_NO_EXIT_ON_EMPTY

2012-07-07 Thread Nick Mathewson
On Sat, Jul 7, 2012 at 6:50 AM, debuguo wrote: > Hello, everyone. > I noticed one new feature added in libevent 2.1, which was the flag of > event_base_new, EVLOOP_NO_EXIT_ON_EMPTY. > BUT I don't know how to exit that event_base loop. even the > event_base_loopexit or event_base_loopbreak seem not

[Libevent-users] about exit when using flag EVLOOP_NO_EXIT_ON_EMPTY

2012-07-07 Thread debuguo
Hello, everyone. I noticed one new feature added in libevent 2.1, which was the flag of event_base_new, EVLOOP_NO_EXIT_ON_EMPTY. BUT I don't know how to exit that event_base loop. even the event_base_loopexit or event_base_loopbreak seem not work. Please tell me if you know the answer. Thank you.