Wait-free thread communication

Ola Fosheim Grøstad via Digitalmars-d digitalmars-d at puremagic.com
Sat Jan 9 08:29:07 PST 2016


On Saturday, 9 January 2016 at 16:22:12 UTC, Jin wrote:
> On Saturday, 9 January 2016 at 16:05:34 UTC, Ola Fosheim 
> Grøstad wrote:
>> You need it in the tests.
>
> If memory writes will reorder, then current tests will fail. 
> Memory reades can be in any order.

They have to be atomic if you want your code to be portable.



More information about the Digitalmars-d mailing list