digitalmars.D.bugs - [Issue 18376] New: core.atomic.atomicOp should allow passing in
- d-bugmail puremagic.com (25/25) Feb 05 2018 https://issues.dlang.org/show_bug.cgi?id=18376
https://issues.dlang.org/show_bug.cgi?id=18376 Issue ID: 18376 Summary: core.atomic.atomicOp should allow passing in values by pointer reference Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: bootcamp Severity: enhancement Priority: P1 Component: druntime Assignee: nobody puremagic.com Reporter: greensunny12 gmail.com There's some existing code out there (e.g. std.getopt) that is based on pointers. --- shared int foo; atomicOpPointer!("+=")(&foo, 1); --- would help in migrating this code. Other functionality in this module is already based on pointers (e.g. cas) See also: https://issues.dlang.org/show_bug.cgi?id=18375 --
Feb 05 2018