www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15007] New: core.atomic match C++11


          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 puremagic.com
          Reporter: turkeyman 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

Sep 03 2015