Re: [Libevent-users] Threading concerns

2009-11-29 Thread Donghua Xu
Thanks Nick. How do I enable the "common timeout" logic? Or is it enabled by default in 2.0.3-alphra? On Mon, Nov 30, 2009 at 1:48 AM, Nick Mathewson wrote: > On Sun, Nov 29, 2009 at 11:18:19PM -0500, Donghua Xu wrote: >> Hi, >> >> Sorry if this is a stupid question. But I have not found a clear

Re: [Libevent-users] Threading concerns

2009-11-29 Thread Nick Mathewson
On Sun, Nov 29, 2009 at 11:18:19PM -0500, Donghua Xu wrote: > Hi, > > Sorry if this is a stupid question. But I have not found a clear > answer in the documentations. I am just beginning to look into using > libevent for our project. We will need to schedule millions of timed > events, and thousan

[Libevent-users] Threading concerns

2009-11-29 Thread Donghua Xu
Hi, Sorry if this is a stupid question. But I have not found a clear answer in the documentations. I am just beginning to look into using libevent for our project. We will need to schedule millions of timed events, and thousands of them may be triggered at the same time. So we have to use thread p

Re: [Libevent-users] Valgrind patch

2009-11-29 Thread Nick Mathewson
On Fri, Nov 27, 2009 at 05:56:25PM -0800, William Ahern wrote: > Valgrind complains on startup because kq_init passes to kevent only a > partially initialized structure. The code doesn't expect kevent to look at > .fflags, .udata, or .data, I suppose, because it merely tickles the > kernel looking