From: Howard Hinnant (hinnant_at_[hidden])
Date: 2004-07-09 13:46:31
If we continue with the upgradable_read_lock idea, I see one danger
that needs to be clearly documented.
Some "genius" is going to figure out that you can atomically convert a
read_lock into a write_lock:
// ok to read
// ok to write
And the next thing we'll know is that the entire NE US is falling into
a blackout. ;-)
It took me awhile to spot the deadlock in the above code. Does anyone
else see the above code as scary? (scary as in looks ok but isn't).
Or is the deadlock obvious to everyone else (and thus not scary)?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk