Пример #1
0
 void WakeupScheduler()
 {
     if (!scheduled_zero)
     {
         WasmRuntime.ScheduleTimeout(0, this.RunScheduler);
         scheduled_zero = true;
     }
 }
Пример #2
0
            void RunScheduler()
            {
                scheduled_zero = false;
                int ms_wait = RunSchedulerLoop();

                if (ms_wait >= 0)
                {
                    WasmRuntime.ScheduleTimeout(ms_wait, this.RunScheduler);
                    if (ms_wait == 0)
                    {
                        scheduled_zero = true;
                    }
                }
            }