[webkit-dev] When should I use AtomicString vs String?
fpizlo at apple.com
Fri Jun 7 09:46:35 PDT 2013
Sent from my PDP-11
On Jun 7, 2013, at 6:18 AM, Simon Fraser <simon.fraser at apple.com> wrote:
> Based on the fact that AtomicString is really a singleton string, I’d like to suggest a new name for this class:
> On Jun 3, 2013, at 3:37 PM, Brendan Long <self at brendanlong.com> wrote:
>> On 06/01/2013 10:09 PM, Glenn Adams wrote:
>>> But the name did throw me, since I asked myself "what makes this more 'atomic' than String, synchronicity wise"? I'm sure I'm not the only one who wondered about this.
>> Before asking this question I had assumed AtomicString was an atomic type (as in, safe to use in multi-threaded code). InternedString would have been more obvious, but the biggest problem was that searching for "WebKit AtomicString" didn't return any results that explained what it was. Now the top hit has an explanation, so it's not a big deal.
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-dev