[phobos] std.atomics

Walter Bright walter at digitalmars.com
Mon Jun 7 14:34:20 PDT 2010



Sean Kelly wrote:
> On Jun 7, 2010, at 1:38 PM, Walter Bright wrote:
>>
>> Sean Kelly wrote:
>>> This module is only partially implemented and seems to conflict with 
>>> using std.concurrency for concurrency stuff.  Should it be removed?
>>>
>>>  
>>
>> I'm not seeing where it conflicts. Concurrency is about message 
>> passing, right? I see std.atomics as an analog for C++0x atomics, 
>> which gives very low level operations for memory fences and such.
>
> I added all the TDPL atomics stuff in core.atomic.  I could have put 
> it in std.atomics instead I suppose, but that would have prevented its 
> use in druntime and it seems potentially too low-level for phobos 
> anyway.  A bit like how std.concurrency uses spawn() as a 
> user-friendly wrapper around core.thread.
>   

Sounds right to me. Dump std.atomics.


More information about the phobos mailing list