fix stack usage and readylist
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user