Le 25/07/2016 01:29, Rainer Weikusat a écrit :
> Sleeping on a contended mutex is implemented in this way. But that's
> supposed to be an exceptional case.
This is why, while advertizing itself as a cool "don't care"
feature, a mutex is problematic: the programmer should make sure
contention is exceptional and there is no risk of dead-lock. This leads,
in my opinion, to a rather restrictive usage of mutexes.
Didier