[cpp-threads] Weak vs Strong Atomics
Roger Orr
rogero at howzatt.demon.co.uk
Thu May 3 20:31:42 BST 2007
cpp-threads-bounces at decadentplace.org.uk wrote:
> "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!
>
An opaque type is fine.
(It's just currently shown as a struct in Lawrence's paper and in
new_atomic.c on the Wiki)
Roger.
More information about the cpp-threads
mailing list