www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4756] New: core.atomic should have atomicOp!"="

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4756

           Summary: core.atomic should have atomicOp!"="
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: sean invisibleduck.org
        ReportedBy: dsimcha yahoo.com


--- Comment #0 from David Simcha <dsimcha yahoo.com> 2010-08-29 08:47:38 PDT ---
This is technically an enhancement, but it severely limits the usability of
core.atomic and seems like a pretty silly omission.  The following code needs
to work:

int num = 1;
atomicOp!"="(num, 2);  // Atomically set num to 2.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 29 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4756


David Simcha <dsimcha yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #1 from David Simcha <dsimcha yahoo.com> 2011-08-12 20:36:31 PDT ---
Resolved by exposing atomic store.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 12 2011