summaryrefslogtreecommitdiff
path: root/src/input_common/sdl/sdl_impl.h
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
commit39483b92b7046c36ee937d80a7342b9ec6bc1ec4 (patch)
tree3ac045824e8cea6d93d58e9a8827b936d265d8d7 /src/input_common/sdl/sdl_impl.h
parent0b78cfcc532ed4353019d361fc595012cdf2e7c4 (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/input_common/sdl/sdl_impl.h')
0 files changed, 0 insertions, 0 deletions