kernel/thread: add ThreadManager

This commit is contained in:
Weiyi Wang 2018-10-23 09:57:59 -04:00
parent f3ee5feb02
commit 34f1fe088c
4 changed files with 24 additions and 1 deletions

View file

@ -53,6 +53,10 @@ enum class ThreadWakeupReason {
Timeout // The thread was woken up due to a wait timeout.
};
class ThreadManager {
public:
};
class Thread final : public WaitObject {
public:
std::string GetName() const override {
@ -210,6 +214,8 @@ private:
explicit Thread(KernelSystem&);
~Thread() override;
ThreadManager& thread_manager;
friend class KernelSystem;
};