4 #include <emscripten.h> 25 while ((callback ==
nullptr || callback(ctx)) && step()) {
29 bool RunLoop::step() {
32 int timeout = eventDuration;
37 eventDuration -= timeout;
38 assert(eventDuration >= 0);
46 m_time += eventDuration;
58 #if ESCHER_LOG_EVENTS_BINARY 61 #if ESCHER_LOG_EVENTS_NAME 62 const char * name =
event.name();
63 if (name ==
nullptr) {
Event getEvent(int *timeout)
static constexpr int TickDuration
virtual int numberOfTimers()
virtual Timer * timerAtIndex(int i)
void writeLine(const char *line)
virtual bool dispatchEvent(Ion::Events::Event e)=0
constexpr Event TimerFire
void runWhile(bool(*callback)(void *ctx), void *ctx)
constexpr Event Termination