kernel/thread: move next_thread_id into manager
This commit is contained in:
parent
34f1fe088c
commit
876729ab52
2 changed files with 10 additions and 10 deletions
|
@ -55,6 +55,14 @@ enum class ThreadWakeupReason {
|
|||
|
||||
class ThreadManager {
|
||||
public:
|
||||
/**
|
||||
* Creates a new thread ID
|
||||
* @return The new thread ID
|
||||
*/
|
||||
u32 NewThreadId();
|
||||
|
||||
private:
|
||||
u32 next_thread_id = 1;
|
||||
};
|
||||
|
||||
class Thread final : public WaitObject {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue