[whatwg] localStorage mutex - a solution?
mike.shaver at gmail.com
Wed Nov 4 14:21:15 PST 2009
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?
More information about the whatwg