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

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