core/hle: Replace lock_guard with scoped_lock

This commit is contained in:
Merry
2022-04-07 19:31:32 +01:00
parent c589db6add
commit 1f275eb077
4 changed files with 13 additions and 13 deletions

View File

@ -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()) {