Add an assert check to make sure no threads scheduled in nonauth model
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user