From f9e63f1d216a1d3ee7b58d1813a2f0fe933f2a25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sat, 15 Aug 2015 11:27:26 -0700 Subject: [PATCH] asmjs: Trying out async. --- examples/common/entry/entry_asmjs.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/common/entry/entry_asmjs.cpp b/examples/common/entry/entry_asmjs.cpp index 3ac5497b..5c560029 100644 --- a/examples/common/entry/entry_asmjs.cpp +++ b/examples/common/entry/entry_asmjs.cpp @@ -9,16 +9,23 @@ #include +extern "C" void entry_emscripten_yield() +{ +// emscripten_sleep(0); +} + namespace entry { const Event* poll() { + entry_emscripten_yield(); return NULL; } const Event* poll(WindowHandle _handle) { BX_UNUSED(_handle); + entry_emscripten_yield(); return NULL; }