Cleanup Thread constructor

This commit is contained in:
Drew Galbraith 2023-06-06 18:40:32 -07:00
parent 41d25a7b46
commit d9b17d96d7
3 changed files with 3 additions and 4 deletions

View file

@ -27,7 +27,7 @@ Process::Process() : id_(gNextId++), state_(RUNNING) {
}
SharedPtr<Thread> Process::CreateThread() {
SharedPtr<Thread> thread{new Thread(*this, next_thread_id_++, 0)};
SharedPtr<Thread> thread{new Thread(*this, next_thread_id_++)};
threads_.PushBack(thread);
return thread;
}