sockets: avoid locking around socket session calls

This commit is contained in:
Liam
2023-08-19 23:09:35 -04:00
parent 6a5db5679b
commit 0cd9d51e06
3 changed files with 10 additions and 2 deletions

View File

@ -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<std::mutex> LockService() {
return std::scoped_lock{lock_service};
[[nodiscard]] virtual std::unique_lock<std::mutex> LockService() {
return std::unique_lock{lock_service};
}
/// System context that the service operates under.