DIP 1024---Shared Atomics---Final Review

Steven Schveighoffer schveiguy at gmail.com
Tue Dec 10 14:50:26 UTC 2019


On 12/10/19 6:30 AM, Martin Tschierschke wrote:
> On Sunday, 8 December 2019 at 16:25:21 UTC, Mike Parker wrote:
>> DIP 1024, "Shared Atomics", is now ready for Final Review. This is the 
>> last chance for community feedback before the DIP is handed off to 
>> Walter and Átila for the Formal Assessment.
>>
>> Anyone intending to post feedback in this thread is expected to be 
>> familiar with the reviewer guidelines:
>>
>> https://github.com/dlang/DIPs/blob/master/docs/guidelines-reviewers.md
>>
>> The current revision of the DIP for this review is located here:
>>
>> https://github.com/dlang/DIPs/blob/78a5bc098fa00c44f11d1819919eb78b8d263254/DIPs/DIP1024.md 
>>
>>
>> In it, you'll find a link to and summary of the previous review 
>> rounds. This round of review will continue until 11:59 pm ET on 
>> December 23 unless I call it off before then.
>>
>> Thanks in advance for your participation.
> 
> Can somebody please give or point to simple examples on howto use 
> core.atomic:
> 
> shared int x;        // ok, initialization to 0
> ++x;                 // error, read and write of shared x
> 
> Looking into https://dlang.org/phobos/core_atomic.html was not so 
> helpful for me.
> 

atomicOp!"+="(x, 1);

-Steve


More information about the Digitalmars-d mailing list