Cleanup Thread constructor
This commit is contained in:
parent
41d25a7b46
commit
d9b17d96d7
3 changed files with 3 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue