Bug 18376 – core.atomic.atomicOp should allow passing in values by pointer reference

Status
NEW
Severity
enhancement
Priority
P4
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-02-05T14:06:01Z
Last change time
2024-12-07T13:37:58Z
Keywords
bootcamp
Assigned to
No Owner
Creator
Seb
Moved to GitHub: dmd#17163 →

Comments

Comment #0 by greensunny12 — 2018-02-05T14:06:01Z
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
Comment #1 by robert.schadek — 2024-12-07T13:37:58Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17163 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB