asmjs: Trying out async.

This commit is contained in:
Branimir Karadžić 2015-08-15 11:27:26 -07:00
parent 06d7f17aee
commit f9e63f1d21

View file

@ -9,16 +9,23 @@
#include <emscripten.h> #include <emscripten.h>
extern "C" void entry_emscripten_yield()
{
// emscripten_sleep(0);
}
namespace entry namespace entry
{ {
const Event* poll() const Event* poll()
{ {
entry_emscripten_yield();
return NULL; return NULL;
} }
const Event* poll(WindowHandle _handle) const Event* poll(WindowHandle _handle)
{ {
BX_UNUSED(_handle); BX_UNUSED(_handle);
entry_emscripten_yield();
return NULL; return NULL;
} }