Bug 4769 – Unary atomics

Status
RESOLVED
Resolution
DUPLICATE
Severity
enhancement
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2010-08-30T13:28:00Z
Last change time
2015-03-30T20:40:37Z
Assigned to
sean
Creator
dsimcha

Comments

Comment #0 by dsimcha — 2010-08-30T13:28:28Z
core.atomic should provide a way to do perform unary atomic operations on variables to the greatest extent practical. The obvious candidates are: atomicOp!"++"(var); atomicOp!"--"(var);
Comment #1 by code — 2015-03-30T20:40:37Z
*** This issue has been marked as a duplicate of issue 12891 ***