https://issues.dlang.org/show_bug.cgi?id=20104

          Issue ID: 20104
           Summary: core.atomic has no exchange function
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: druntime
          Assignee: [email protected]
          Reporter: [email protected]

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.

--

Reply via email to