mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-08-25 03:27:20 +02:00
yuzu/util: Replace lock_guard with scoped_lock
This commit is contained in:
parent
3cf6593342
commit
4778656110
@ -39,7 +39,7 @@ void ControllerNavigation::TriggerButton(Settings::NativeButton::Values native_b
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ControllerNavigation::ControllerUpdateEvent(Core::HID::ControllerTriggerType type) {
|
void ControllerNavigation::ControllerUpdateEvent(Core::HID::ControllerTriggerType type) {
|
||||||
std::lock_guard lock{mutex};
|
std::scoped_lock lock{mutex};
|
||||||
if (!Settings::values.controller_navigation) {
|
if (!Settings::values.controller_navigation) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user