From 0cd9d51e06de7bb17b238096976d177446260a80 Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 19 Aug 2023 23:09:35 -0400 Subject: sockets: avoid locking around socket session calls --- src/core/hle/service/service.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/hle/service/service.h') diff --git a/src/core/hle/service/service.h b/src/core/hle/service/service.h index 45b2c43b7..d539ed0f4 100644 --- a/src/core/hle/service/service.h +++ b/src/core/hle/service/service.h @@ -79,8 +79,8 @@ protected: using HandlerFnP = void (Self::*)(HLERequestContext&); /// Used to gain exclusive access to the service members, e.g. from CoreTiming thread. - [[nodiscard]] std::scoped_lock LockService() { - return std::scoped_lock{lock_service}; + [[nodiscard]] virtual std::unique_lock LockService() { + return std::unique_lock{lock_service}; } /// System context that the service operates under. -- cgit v1.2.3