It should be possible to add an emterpreter-async method that resumes when
you tell it to. Look at how emscripten_sleep is implemented, there is a
resume() method there that is called after a timeout, but you could create
a method that calls it in a more manual way.

On Thu, Jul 23, 2015 at 1:25 AM, <[email protected]> wrote:

> Hi,
>
> i have a long C code made by sync code.
> The problem is that my javascript block for a long of time and i can't
> update the UI.
>
> I have read about "sleep", but this create an setTimeout() and is not good
> for me since
> i don't have the control about the code. I want to be able to make "sleep,
> but wait until i tell you resume".
>
> Thank you advance,
>
> M.
>
> --
> 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/d/optout.
>

-- 
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/d/optout.

Reply via email to