[cpp-threads] Somewhat relevant technical report

Peter Dimov pdimov at mmltd.net
Sat Dec 17 21:29:21 GMT 2005


Alexander Terekhov wrote:
> On 12/17/05, Peter Dimov <pdimov at mmltd.net> wrote:
> [...]
>> I agree that the lock/unlock pair prevents this transformation.
>
> Nope. A dummy lock can be removed entirely.

It can't unless the compiler can prove that it's not being locked anywhere 
else. 




More information about the cpp-threads mailing list