[cpp-threads] High-level vs. low-level

Peter Dimov pdimov at mmltd.net
Thu Jul 13 23:29:09 BST 2006


Alexander Terekhov wrote:
> On 7/13/06, Peter Dimov <pdimov at mmltd.net> wrote:
>> Alexander Terekhov wrote:
>>> On 7/13/06, Peter Dimov <pdimov at mmltd.net> wrote:
>>
>>>>     int __atomic x;
>>>
>>> Uh. And why not simply atomic_int (could use std::atomic<int> under
>>> the cover a la <iohw.h> -> <hardware> from the TR, see Appendix C)?
>>
>> Mainly because I want atomics that work on pointers:
>>
>>     int * px;
>
> atomic<int *> px;

Yes, of course, I responded to "why not atomic_int". atomic<> was one of the 
options in my list, it can work. 




More information about the cpp-threads mailing list