apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Branko ─îibej <br...@xbc.nu>
Subject Re: Missing WaitForSingleObject on apr_thread_cont's mutex?
Date Sun, 05 Jun 2005 04:25:14 GMT
Henry Jen wrote:

>Hi,
>
>I was looking at the apr_thread_cond.c, and wondering if the
>apr_thread_cond_wait & apr_thread_cond_timedwait code is missing a
>WaitForSingleObject call on the mutex. Would someone share some light
>with me? :-) 
>
>The following is code snippet from the SVN trunk, and it seems to be
>same as in apr-0.9.6. Comments in the code.
>  
>
The whole condition variable thing is broken on Windows. It has more 
race conditions than (insert faviourite expression). Adding a lock won't 
help. Someone has to rewrite the whole thing.

(I'd actually started doing that at one point, but dropped it. Lack of 
time, etc.)

-- Brane


Mime
View raw message