
5 Aug
2010
5 Aug
'10
4:18 a.m.
On Aug 4, 2010, at 12:01 PM, Sid Sacek <ssacek@securewatch24.com> wrote:
I'm starting to believe the answer to my question is that it is not the responsibility of constructors to solve potential cache-coherency issues, but rather, the code that uses the boost classes must be knowledgeable of the hardware's limitations and make special provisions for it.
The idea of the new c++0x memory model is that you only need to know about /it's/ limitations. But yeah, trying to do thread safety at the object level is almost always wrong. The necessary locks depend on context. -- Dave Abrahams (mobile) BoostPro Computing http://www.boostpro.com