NaCl/Emscripten
via Digitalmars-d
digitalmars-d at puremagic.com
Fri Jan 9 03:30:17 PST 2015
On Friday, 9 January 2015 at 10:10:36 UTC, Manu via Digitalmars-d
wrote:
> I can probably get by with @nogc. There's no threading in asm.js
> either, so that might be a spanner.
You have worker threads, so you would have to use message
passing, but I believe you can transfer "byte heaps" by reference
between threads in a unique_ptr style (so only one thread can
access it at the same time):
https://developer.mozilla.org/en-US/docs/Web/API/Transferable
Maybe it is possible to get the GC to work too, but it sounds
like a lot of work for nothing IMO.
More information about the Digitalmars-d
mailing list