kernel/thread: add ThreadManager
This commit is contained in:
parent
f3ee5feb02
commit
34f1fe088c
4 changed files with 24 additions and 1 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue