Jonathan Wakely wrote:
FYI I've modified boost::shared_ptr for inclusion in GCC's standard
library and have replaced the mutexes with atomic ops along those
lines.
Be sure to test your implementation on platforms with relaxed memory
visibility rules. ;-)