DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27654>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27654

Deadlock in apr_thread_cond_wait on WIN32 platform





------- Additional Comments From [EMAIL PROTECTED]  2004-08-28 16:58 -------
There's a general problem when calling apr_mutex_unlock several times under 
WIN32; since this might call the WIN32 API function "LeaveCriticalSection".

Quoting MSDN docs on LeaveCriticalSection:
---snip---
[...]
If a thread calls LeaveCriticalSection when it does not have ownership of the 
specified critical section object, an error occurs that may cause another 
thread using EnterCriticalSection to wait indefinitely.
[...]
---snip---

However - this patch removes problems when using condvars under WIN32.
Another solution would be to add a "lock counter" to APR mutexes.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to