diff options
| author | 2018-05-07 21:57:42 -0400 | |
|---|---|---|
| committer | 2018-05-10 19:34:52 -0400 | |
| commit | 4822765fefbb81ad55fe4db7561ccf69b9a60bcd (patch) | |
| tree | 54d357b8493384b331fbfd1fbbdeadfff72f97b6 /src/core/hle/kernel/thread.cpp | |
| parent | threading: Reschedule only on cores that are necessary. (diff) | |
| download | yuzu-4822765fefbb81ad55fe4db7561ccf69b9a60bcd.tar.gz yuzu-4822765fefbb81ad55fe4db7561ccf69b9a60bcd.tar.xz yuzu-4822765fefbb81ad55fe4db7561ccf69b9a60bcd.zip | |
thread: Initialize ideal_core and mask members.
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
| -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 31cf1551d..ac6252eac 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, | |||
| 266 | thread->nominal_priority = thread->current_priority = priority; | 266 | thread->nominal_priority = thread->current_priority = priority; |
| 267 | thread->last_running_ticks = CoreTiming::GetTicks(); | 267 | thread->last_running_ticks = CoreTiming::GetTicks(); |
| 268 | thread->processor_id = processor_id; | 268 | thread->processor_id = processor_id; |
| 269 | thread->ideal_core = processor_id; | ||
| 270 | thread->mask = 1 << processor_id; | ||
| 269 | thread->wait_objects.clear(); | 271 | thread->wait_objects.clear(); |
| 270 | thread->mutex_wait_address = 0; | 272 | thread->mutex_wait_address = 0; |
| 271 | thread->condvar_wait_address = 0; | 273 | thread->condvar_wait_address = 0; |