aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/buffer_cache
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-08-26 01:55:44 +0000
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-08-26 02:56:05 +0000
commit8f050dd1d9a97cd762d7eece2af6120ff67c55f6 (patch)
treeaab98e92a63c4ed5a3fcabef34dce8f8445278cf /src/video_core/buffer_cache
parentce74cce2eae9a1f664ab582a98b82841e0ca9467 (diff)
hle/scheduler: Fix data race in is_context_switch_pending
As reported by tsan, SelectThreads could write to is_context_switch_pending holding a mutex while SwitchToCurrent reads it without holding any. It is assumed that the author didn't want an atomic here, so the code is reordered so that whenever is_context_switch_pending is read inside SwitchToContext, the mutex is locked.
Diffstat (limited to 'src/video_core/buffer_cache')
0 files changed, 0 insertions, 0 deletions