diff options
| author | bunnei <bunneidev@gmail.com> | 2018-05-07 21:57:42 -0400 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2018-05-10 19:34:52 -0400 |
| commit | 82bb8701ea03ef89bc76f1fe4d76b5be2e3ab4a3 (patch) | |
| tree | 54d357b8493384b331fbfd1fbbdeadfff72f97b6 /src | |
| parent | 5a5850af692f0944ead4c04770cfe59944901659 (diff) | |
thread: Initialize ideal_core and mask members.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/kernel/thread.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 31cf1551d2..ac6252eac5 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp @@ -266,6 +266,8 @@ ResultVal<SharedPtr<Thread>> Thread::Create(std::string name, VAddr entry_point, thread->nominal_priority = thread->current_priority = priority; thread->last_running_ticks = CoreTiming::GetTicks(); thread->processor_id = processor_id; + thread->ideal_core = processor_id; + thread->mask = 1 << processor_id; thread->wait_objects.clear(); thread->mutex_wait_address = 0; thread->condvar_wait_address = 0; |
