[cpp-threads] Weak vs Strong Atomics
Nick Maclaren
nmm1 at cus.cam.ac.uk
Thu May 3 20:18:01 BST 2007
"Roger Orr" <rogero at howzatt.demon.co.uk> wrote:
>
> So could we:
> - declare struct atomic_int as a pretty nearly raw struct in both C and C++
No. It MUST be an opaque type, at least in C. Make it a struct,
and it becomes defined behaviour to unpick it.
Unless I have misunderstood what you are saying, which seems quite
likely!
Regards,
Nick Maclaren,
University of Cambridge Computing Service,
New Museums Site, Pembroke Street, Cambridge CB2 3QH, England.
Email: nmm1 at cam.ac.uk
Tel.: +44 1223 334761 Fax: +44 1223 334679
More information about the cpp-threads
mailing list