summaryrefslogtreecommitdiff
path: root/src/input_common/sdl/sdl.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2019-03-14 21:47:46 -0400
committerGravatar Lioncash2019-03-15 23:01:43 -0400
commit39483b92b7046c36ee937d80a7342b9ec6bc1ec4 (patch)
tree3ac045824e8cea6d93d58e9a8827b936d265d8d7 /src/input_common/sdl/sdl.cpp
parentkernel/thread: Maintain priority ordering of added mutex waiting threads (diff)
downloadyuzu-39483b92b7046c36ee937d80a7342b9ec6bc1ec4.tar.gz
yuzu-39483b92b7046c36ee937d80a7342b9ec6bc1ec4.tar.xz
yuzu-39483b92b7046c36ee937d80a7342b9ec6bc1ec4.zip
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/input_common/sdl/sdl.cpp')
0 files changed, 0 insertions, 0 deletions