sockets: avoid locking around socket session calls
This commit is contained in:
parent
6a5db5679b
commit
0cd9d51e06
3 changed files with 10 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue