BUILD_AS_WORKER generates a worker that the emscripten worker API can
access, see emscripten.h (emscripten_create_worker etc.). So it is a worker
meant to be called from a main program which is also an emscripten output.

- Alon



On Sun, Dec 22, 2013 at 12:41 PM, <[email protected]> wrote:

>
>
> On Friday, December 20, 2013 3:19:11 AM UTC+1, azakai wrote:
>>
>> You can transfer typed arrays. But if they come from the emscripten heap,
>> you must first copy them out of it, so you cannot avoid any copying in that
>> case.
>>
>> Ok, that makes sense.
>
> Another question - what does the BUILD_AS_WORKER actually do? Isn't it
> possible to build a js-file that can both be used as a worker and be called
> directly?
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to