[Issue 18376] New: core.atomic.atomicOp should allow passing in values by pointer reference

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 5 14:06:01 UTC 2018


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 at puremagic.com
          Reporter: greensunny12 at 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

--


More information about the Digitalmars-d-bugs mailing list