summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.cpp
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2023-04-02 15:51:06 -0700
committerPokechu22 <Pokechu022@gmail.com>2023-04-02 15:51:21 -0700
commit9e0755a5983d8d9a277cea284534fb32a545f270 (patch)
tree421c9ef25d8f528fe5d8d959cd1602635fdad2aa /Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.cpp
parentaaeaa9c6b68b0e7fcea6afda50e0072202e8f0d2 (diff)
HookableEvent: Use std::recursive_mutex instead of std::mutex
This fixes a crash when recording fifologs, as the mutex is acquired when BPWritten calls AfterFrameEvent::Trigger, but then acquired again when FifoRecorder::EndFrame calls m_end_of_frame_event.reset(). std::mutex does not allow calling lock() if the thread already owns the mutex, while std::recursive_mutex does allow this. This is a regression from #11522 (which introduced the HookableEvent system).
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.cpp')
0 files changed, 0 insertions, 0 deletions