mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-23 05:17:54 -05:00
core/hle: Replace lock_guard with scoped_lock
This commit is contained in:
@ -318,7 +318,7 @@ void Controller_NPad::OnRelease() {
|
||||
}
|
||||
|
||||
void Controller_NPad::RequestPadStateUpdate(Core::HID::NpadIdType npad_id) {
|
||||
std::lock_guard lock{mutex};
|
||||
std::scoped_lock lock{mutex};
|
||||
auto& controller = GetControllerFromNpadIdType(npad_id);
|
||||
const auto controller_type = controller.device->GetNpadStyleIndex();
|
||||
if (!controller.device->IsConnected()) {
|
||||
|
Reference in New Issue
Block a user