forked from dolphin-emu/dolphin
This prevents deadlocks when switching to exclusive mode. And it also allows the CPU thread to block until we've completed the switch.
This prevents deadlocks when switching to exclusive mode. And it also allows the CPU thread to block until we've completed the switch.