Implement all the thread synchronisation objects for the new scheduler.

Event, fastmutex, messagequeue, mutex, condition, semaphore.
This also gets rid of the silly systemobject system, yay!
Add some stubs for Alarm, need interrupt support in our CPU to implement.
This commit is contained in:
James Benton
2015-07-08 22:10:35 +01:00
parent 0bb36ed6b1
commit 690eb0636a
32 changed files with 1229 additions and 725 deletions

View File

@@ -79,6 +79,7 @@ Processor::coreEntryPoint(Core *core)
// Switch to fiber
core->currentFiber = fiber;
fiber->coreID = core->id;
fiber->parentFiber = core->primaryFiber;
fiber->thread->state = OSThreadState::Running;
lock.unlock();