Bug 20104 – core.atomic has no exchange function

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-08-04T21:29:54Z
Last change time
2019-08-12T11:06:11Z
Keywords
pull
Assigned to
No Owner
Creator
Manu

Comments

Comment #0 by turkeyman — 2019-08-04T21:29:54Z
Stomic exchange is a critical operation, and it's not present in the library. You need this to implement a spin lock; the single most basic atomic primitive.
Comment #1 by dlang-bot — 2019-08-12T05:10:28Z
@TurkeyMan updated dlang/druntime pull request #2729 "Added atomicExchange to core.atomic" fixing this issue: - Added atomicExchange to core.atomic Fix Issue 20104 - core.atomic has no exchange function https://github.com/dlang/druntime/pull/2729
Comment #2 by dlang-bot — 2019-08-12T11:06:11Z
dlang/druntime pull request #2729 "Added atomicExchange to core.atomic" was merged into master: - 16048f1d764c279c8d860e02fae90f3b960fc28e by Manu Evans: Added atomicExchange to core.atomic Fix Issue 20104 - core.atomic has no exchange function https://github.com/dlang/druntime/pull/2729