[cpp-threads] Somewhat relevant technical report
Alexander Terekhov
alexander.terekhov at gmail.com
Sat Dec 17 22:39:58 GMT 2005
On 12/17/05, Peter Dimov <pdimov at mmltd.net> wrote:
[...]
> Interesting, but... doesn't checking the old thread id require a hoist-load?
> You could read "previous previous owner" instead of "previous owner"
> otherwise, if the read is hoisted above the lock acquisiton...
Lock/unlocked bit and owner id can be kept in the same memory location.
regards,
alexander.
More information about the cpp-threads
mailing list