aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/process.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-03-14 21:47:46 -0400
committerLioncash <mathew1800@gmail.com>2019-03-15 23:01:43 -0400
commitf68087ce1251adce4860c4afb254d57aa38c22d1 (patch)
tree3ac045824e8cea6d93d58e9a8827b936d265d8d7 /src/core/hle/kernel/process.cpp
parent8b4380a0685d300f7fa3e3db5367f9caa00fe437 (diff)
kernel/thread: Amend condition within UpdatePriority()
This condition was checking against the nominal thread priority, whereas the kernel itself checks against the current priority instead. We were also assigning the nominal priority, when we should be assigning current_priority, which takes priority inheritance into account. This can lead to the incorrect priority being assigned to a thread. Given we recursively update the relevant threads, we don't need to go through the whole mutex waiter list. This matches what the kernel does as well (only accessing the first entry within the waiting list).
Diffstat (limited to 'src/core/hle/kernel/process.cpp')
0 files changed, 0 insertions, 0 deletions