mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-05 17:02:40 +00:00
mutex scoped
This commit is contained in:
parent
aed5853242
commit
b1ae13f43b
@ -40,6 +40,7 @@ void RegisterNet(Core::Loader::SymbolsResolver* sym) {
|
||||
}
|
||||
|
||||
int NetPosixInternal::create_socket(int domain, int type, int protocol) {
|
||||
std::scoped_lock lock{m_mutex};
|
||||
s_socket sock = socket(domain, type, protocol);
|
||||
auto id = ++next_id;
|
||||
socks.emplace(id, sock);
|
||||
|
@ -18,8 +18,8 @@ typedef SOCKET s_socket;
|
||||
#include <sys/socket.h>
|
||||
typedef int s_socket;
|
||||
#endif
|
||||
#include <mutex>
|
||||
#include <map>
|
||||
#include <mutex>
|
||||
|
||||
namespace Common {
|
||||
class NativeClock;
|
||||
|
Loading…
Reference in New Issue
Block a user