Aufgabe 4: Kontextwechsel
Todo List
- Class Application
- Application should inherit from Thread
- Member Application::action () override
- Implement Method
- Member Application::Application ()
- Implement Constructor
- Member context_switch (StackPointer ¤t, StackPointer &next)
- Implement Method
- Member Dispatcher::active ()
- Implement Method
- Member Dispatcher::dispatch (Thread *next)
- Implement Method
- Member Dispatcher::go (Thread *first)
- Implement Method
- Member prepareContext (void *tos, void(*kickoff)(void *), void *param1=nullptr)
- Implement Function (and helper functions, if required)
- Member Scheduler::exit ()
- Implement Method
- Member Scheduler::kill (Thread *that)
- Implement Method
- Member Scheduler::ready (Thread *that)
- Implement Method
- Member Scheduler::resume ()
- Implement Method
- Member Scheduler::schedule ()
- Implement Method
- Member Thread::go ()
- Implement Method
- Member Thread::kickoff (Thread *object)
- Implement Method
- Member Thread::resume (Thread *next)
- Implement Method
- Member Thread::Thread ()
- Implement constructor