// vim: set noet ts=4 sw=4: #include "dispatcher.h" #include "../arch/core.h" Dispatcher::Dispatcher() { } Thread *Dispatcher::active() { return lifePointer[Core::getID()]; } bool Dispatcher::isActive(const Thread *thread, unsigned *cpu) { for(uint8_t i=0; igo(); } void Dispatcher::dispatch(Thread *next) { //lifePointer[Core::getID()] = next; lifePointer[Core::getID()]->resume(next); }