Re: [chromium-html5] LocalStorage inside Worker

>
>
>
> 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
namespace.


Cheers,
Keean.

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