Add an assert check to make sure no threads scheduled in nonauth model

This commit is contained in:
2022-04-27 16:05:45 -04:00
parent 214734b627
commit d28c588468
3 changed files with 12 additions and 3 deletions

View File

@@ -312,7 +312,7 @@ LuaDefine(wait, "nticks",
return LS.result();
} else {
// in an authoritative model, wait schedules a continuation.
w->thread_sched_.add(w->clock_ + n, w->lthread_thread_id_, w->lthread_place_id_);
w->schedule(w->clock_ + n, w->lthread_thread_id_, w->lthread_place_id_);
lua_yield(L, 0);
return LS.result();
}