[Issue 15007] New: core.atomic match C++11
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Sep 3 05:06:11 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=15007
Issue ID: 15007
Summary: core.atomic match C++11
Product: D
Version: D2
Hardware: x86_64
OS: Windows
Status: NEW
Severity: enhancement
Priority: P1
Component: druntime
Assignee: nobody at puremagic.com
Reporter: turkeyman at gmail.com
I'm porting some code using C++11 <atomic> which provides std::atomic<T>, and
has some useful methods.
core.atomic provides the primitives with which these can be created, but I
think core.atomic should go one step further and provide the direct parallels
to C++'s std::atomic to make porting code fast and painless.
The missing functions are:
exchange, fetch_***, compare_exchange_weak/strong
--
More information about the Digitalmars-d-bugs
mailing list