[cpp-threads] atomic operations package
Peter Dimov
pdimov at mmltd.net
Thu Aug 25 15:12:02 BST 2005
Alexander Terekhov wrote:
> On 8/23/05, Peter Dimov <pdimov at mmltd.net> wrote:
> [...]
>> The C people would never accept the <> syntax. They hate templates
>> with a passion. :-)
>
> Why not simply give a bunch of macros to templates haters?
>
> __STDC_ATOMIC_SCALAR(int, v);
This doesn't work, I may need to be able to express the type atomic<int>
outside of a declaration.
__STD_ATOMIC(int) v;
I'm still with
int v;
>> atomic_load( &v, msync_acq )
>
> __STDC_ATOMIC_LOAD(v, __STDC_MSYNC_ACQ);
Merely an uglier version of the line above. Why is this an improvement?
More information about the cpp-threads
mailing list