Skip to content
This repository has been archived by the owner on Aug 31, 2018. It is now read-only.

worker: implement SharedArrayBuffer/MessagePort transferring #106

Merged
merged 2 commits into from
Oct 16, 2017

Commits on Oct 16, 2017

  1. worker: support MessagePort passing in messages

    Support passing `MessagePort` instances through other `MessagePort`s,
    as expected by the `MessagePort` spec.
    
    PR-URL: #106
    Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
    addaleax committed Oct 16, 2017
    Configuration menu
    Copy the full SHA
    734866f View commit details
    Browse the repository at this point in the history
  2. worker: add SharedArrayBuffer sharing

    Logic is added to the `MessagePort` mechanism that
    attaches hidden objects to those instances when they are transferred
    that track their lifetime and maintain a reference count, to make
    sure that memory is freed at the appropriate times.
    
    PR-URL: #106
    Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
    addaleax committed Oct 16, 2017
    Configuration menu
    Copy the full SHA
    b8ff855 View commit details
    Browse the repository at this point in the history