Re: [Libevent-users] pthread_cond_timedwait realtime clock race

2012-09-20 Thread Nick Mathewson
On Sep 20, 2012 1:47 PM, "David Goulet" wrote: > > I was thinking that maybe we could simply set the monotonic clock > source, if available, by default in the evthread_posix_cond_alloc(). Seems plausible to me -- either at alloc time or wait time, whichever works better. (Remember to use the mas

Re: [Libevent-users] pthread_cond_timedwait realtime clock race

2012-09-20 Thread David Goulet
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone, I was working on a way to come up with a patch to fix this issue. It gets a bit complicated to set the pthread condition attributes in evthread_posix_cond_wait() since a condition attribute needs to be set and used to initialize the condi