示例#1
0
文件: Timer.cs 项目: yssource/mono
 void WakeupScheduler()
 {
     if (!scheduled_zero)
     {
         WasmRuntime.ScheduleTimeout(0, this.RunScheduler);
         scheduled_zero = true;
     }
 }
示例#2
0
文件: Timer.cs 项目: yssource/mono
            void RunScheduler()
            {
                scheduled_zero = false;
                int ms_wait = RunSchedulerLoop(cached_new_time);

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