Boost logo

Threads-Devel :

From: Roland Schwarz (roland.schwarz_at_[hidden])
Date: 2006-03-06 06:02:10

Matt Hurd wrote:

>To avoid the errors in writing portable code I discussed before. Making a
>recursive mutex the default makes a large class of portability errors go
Sorry, I disagree. Windows does not have the concept of condition
variables, but pthreads has. Recursive mutex behaviour is potentially
dangerous when used with a condition variable. So this might explain
why windows has recursive per default.
And if you are using recursive mutex together with condition variables
you can detected inappropriate usage only during runtime.


Threads-Devel list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at