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

Re: Using ArrayBuffer as payload for binary data to/from Web Workers

From: Glenn Maynard <glenn@zewt.org>
Date: Tue, 8 Mar 2011 12:12:05 -0500
Message-ID: <AANLkTinop22c2oq-PZgtMWUYz4hGfrs3Vm+qgVwjNWQg@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: Chris Marrin <cmarrin@apple.com>, Web Applications Working Group WG <public-webapps@w3.org>
On Mon, Mar 7, 2011 at 10:12 PM, Glenn Maynard <glenn@zewt.org> wrote:

> That could be dealt with by adding methods like ArrayBuffer.discard(),
> though...
>

Scratch that--discarding after postMessage is racy, since the other side
could receive the object before the worker calls discard().  The object
needs to be flagged *before* the message.  At that point, it isn't a
simplification over a zero-copy interface anymore.

-- 
Glenn Maynard
Received on Tuesday, 8 March 2011 17:12:37 UTC

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