fix stack usage and readylist

This commit is contained in:
Eggert Jung
2025-06-23 14:55:08 +02:00
parent 94249eda37
commit da34f7cada
3 changed files with 14 additions and 5 deletions

View File

@@ -22,9 +22,11 @@ bool Dispatcher::isActive(const Thread *thread, unsigned *cpu) {
}
void Dispatcher::go(Thread *first) {
lifePointer[Core::getID()] = first;
first->go();
}
void Dispatcher::dispatch(Thread *next) {
lifePointer[Core::getID()] = next;
lifePointer[Core::getID()]->resume(next);
}