[Webkit-unassigned] [Bug 115875] New: add atomicAdd and atomicSubtract
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu May 9 14:36:47 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=115875
Summary: add atomicAdd and atomicSubtract
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Minor
Priority: P3
Component: Web Template Framework
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: achristensen at apple.com
CC: paroga at paroga.com, msaboff at apple.com
Source/WTF/wtf/Atomics.h currently has atomicIncrement and atomicDecrement for adding and subtracting 1 atomically, but there is no way to add and subtract other values atomically using WTF. This is needed in cases like Source/WTF/wtf/text/StringImpl.h line 584, which increments a value by 2.
I added atomicAdd and atomicSubtract and tested it on Mac, but I'd prefer someone try this on Windows before reviewing in case I forgot something Windows-specific.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list