D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4769 - Unary atomics
Summary: Unary atomics
Status: RESOLVED DUPLICATE of issue 12891
Alias: None
Product: D
Classification: Unclassified
Component: druntime (show other issues)
Version: D2
Hardware: Other Windows
: P2 enhancement
Assignee: Sean Kelly
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-30 13:28 UTC by David Simcha
Modified: 2015-03-30 20:40 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description David Simcha 2010-08-30 13:28:28 UTC
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 Martin Nowak 2015-03-30 20:40:37 UTC

*** This issue has been marked as a duplicate of issue 12891 ***