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

[whatwg] localStorage mutex - a solution?

From: Mike Shaver <mike.shaver@gmail.com>
Date: Wed, 4 Nov 2009 17:21:15 -0500
Message-ID: <cc092ba00911041421k4cf1a14xb88cab4ddd9821c3@mail.gmail.com>
On Wed, Nov 4, 2009 at 5:13 PM, Rob Ennals <rob.ennals at gmail.com> wrote:
> How about this for a solution for the localStorage mutex problem:
> "the user agent MAY release the storage mutex on *any* API operation except
> localStorage itself"
> This guarantees that the common case of "several storage operations in a row
> with nothing in-between" works, but gives the implementors the freedom to
> release the storage mutex wherever else they find they need to.

How does it guarantee that?  Can't the user agent release the mutex
due to activity in another process/thread, between operations that are
sequential in a given script?

Received on Wednesday, 4 November 2009 14:21:15 UTC

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