ReinUsesLisp ccdd84a778 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.
2020-08-26 02:56:05 +00:00
..
2020-08-16 14:15:39 +01:00
2020-06-27 11:36:05 -04:00
2020-06-27 18:20:06 -04:00
2020-06-27 11:35:21 -04:00
2020-04-20 15:53:49 -04:00
2020-08-16 14:15:39 +01:00