[Libevent-users] Offline for a couple of weeks

2010-12-21 Thread Nick Mathewson
Hi, all! I'm going to be away on vacation for a few days starting soon, and off the internet in general for pretty much the rest of 2010 to spend time paying attention to my family. I don't ordinarily send vacation notices, but there are more than a couple of interesting threads going on now, and

Re: [Libevent-users] Threaded event bases

2010-12-21 Thread Mark Ellzey
On Tue, Dec 21, 2010 at 11:02:25AM -0500, Evan Jones wrote: > You can do this with libevent 2.0, using thread-safe event loops, > and using event_active() to "trigger" an event to be run in another > thread. I've never had much luck with event_active across multiple threads, though this may be bec

Re: [Libevent-users] Threaded event bases

2010-12-21 Thread Evan Jones
On Dec 21, 2010, at 10:44 , Mark Ellzey wrote: There are other options for consumer/worker pools. Check out https://strcpy.net/mark/evthreads/ which uses a per-thread base you can defer functions into threads from your main base. You can do this with libevent 2.0, using thread-safe event loops,

Re: [Libevent-users] Buffer event race condition

2010-12-21 Thread Mark Ellzey
On Mon, Dec 20, 2010 at 01:32:50AM -0500, Kevin Bowling wrote: > I'm at wit's end with a libevent threading bug. As part of a disconnect > client routine, I manually call the errorcb with EVENT_ERROR_EOF. The idea > was to keep all the cleanup code in one callback but I'm beginning to think > thi

Re: [Libevent-users] Threaded event bases

2010-12-21 Thread Mark Ellzey
On Sat, Dec 18, 2010 at 08:31:23PM -0500, Kevin Bowling wrote: > One of the ideas I saw floating around for libevent 2.1 was threaded event > bases to ease thread pool programming. > > This seems like a pretty challenging project and probably beyond my > abilities at the moment but if we can hash