W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2011

Re: [chromium-html5] LocalStorage inside Worker

From: Keean Schupke <keean@fry-it.com>
Date: Fri, 7 Jan 2011 17:29:46 +0000
Message-ID: <AANLkTincBdPVtpDYTm3hxdiELhtTBfeDr0_rJ07eQ6Bt@mail.gmail.com>
To: Felix Halim <felix.halim@gmail.com>
Cc: Jonas Sicking <jonas@sicking.cc>, Jeremy Orlow <jorlow@chromium.org>, public-webapps WG <public-webapps@w3.org>
> Race conditions still happen if you (jarringly) forgot to wrap your
> "shared" object inside atomic block :P. So, maybe it's a good idea to
> only allow localStorage to be accessed inside an atomic block (even in
> workers)?
Yes, that was in my original suggestion.

atomic(function(shared) {...});

The callback scoped variable "shared" is the only way to access the shared

Received on Friday, 7 January 2011 17:30:19 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:15 UTC