Re: Sync API for workers

On Sun, Oct 13, 2013 at 8:11 PM, Glenn Maynard <glenn@zewt.org> wrote:

> - Descendants of a MessagePortSyncSide's initial thread are always legal
> threads.  Additionally, if the port's transferred first value is true, the
> initial thread itself is also a legal thread.
> - Ancestors of a MessagePortSyncSide's initial thread are always legal
> threads.  Additionally, if the port's transferred first value is false, the
> initial thread itself is also a legal thread.
>

Correction:

- Descendants of a MessagePortSyncSide's initial thread are always legal
threads.  Additionally, if the port's transferred first value is *false*,
the initial thread itself is also a legal thread.
- Ancestors of a *MessagePortAsyncSide*'s initial thread are always legal
threads.  Additionally, if the port's transferred first value is false, the
initial thread itself is also a legal thread.

The initial thread is only a valid thread for the port that was *not*
transferred first.  When the first port is transferred for the first time,
the remaining port, which is still in the thread it was created in, is
always in a valid thread.

-- 
Glenn Maynard

Received on Monday, 14 October 2013 03:19:42 UTC