W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2009

[whatwg] localStorage mutex - a solution?

From: Robert O'Callahan <robert@ocallahan.org>
Date: Mon, 9 Nov 2009 14:33:27 +1300
Message-ID: <11e306600911081733v74bcd05ch89184d5c942a780e@mail.gmail.com>
On Mon, Nov 9, 2009 at 1:42 PM, Adam Barth <whatwg at adambarth.com> wrote:

> As I mentioned to Ian at TPAC, one way to make this more predictable
> is to release the lock on *every* function call and return.  This
> provides content enough atomicity to build whatever locks it needs.
>

Then simple refactorings that should be semantics-preserving --- like
extracting a block of code into a shared function --- would break atomicity.
This also places a new burden on JS implementations.

Rob
-- 
"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
53:5-6]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20091109/d03bd038/attachment.htm>
Received on Sunday, 8 November 2009 17:33:27 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:18 UTC