mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-27 10:20:49 +00:00
Change another mutex back to being recursive. Oops. Fixes #9450
This commit is contained in:
parent
f6463ae43f
commit
d30116b8c3
@ -51,7 +51,7 @@ int metasocket;
|
||||
SceNetAdhocctlParameter parameter;
|
||||
SceNetAdhocctlAdhocId product_code;
|
||||
std::thread friendFinderThread;
|
||||
std::mutex peerlock;
|
||||
std::recursive_mutex peerlock;
|
||||
SceNetAdhocPdpStat * pdp[255];
|
||||
SceNetAdhocPtpStat * ptp[255];
|
||||
uint32_t localip;
|
||||
@ -104,7 +104,7 @@ void addFriend(SceNetAdhocctlConnectPacketS2C * packet) {
|
||||
if (packet == NULL) return;
|
||||
|
||||
// Multithreading Lock
|
||||
std::lock_guard<std::mutex> guard(peerlock);
|
||||
std::lock_guard<std::recursive_mutex> guard(peerlock);
|
||||
|
||||
SceNetAdhocctlPeerInfo * peer = findFriend(&packet->mac);
|
||||
// Already existed
|
||||
@ -1525,7 +1525,7 @@ bool resolveMAC(SceNetEtherAddr * mac, uint32_t * ip) {
|
||||
}
|
||||
|
||||
// Multithreading Lock
|
||||
std::lock_guard<std::mutex> guard(peerlock);
|
||||
std::lock_guard<std::recursive_mutex> guard(peerlock);
|
||||
|
||||
// Peer Reference
|
||||
SceNetAdhocctlPeerInfo * peer = friends;
|
||||
|
@ -788,7 +788,7 @@ extern int metasocket;
|
||||
extern SceNetAdhocctlParameter parameter;
|
||||
extern SceNetAdhocctlAdhocId product_code;
|
||||
extern std::thread friendFinderThread;
|
||||
extern std::mutex peerlock;
|
||||
extern std::recursive_mutex peerlock;
|
||||
extern SceNetAdhocPdpStat * pdp[255];
|
||||
extern SceNetAdhocPtpStat * ptp[255];
|
||||
extern std::map<int, AdhocctlHandler> adhocctlHandlers;
|
||||
|
Loading…
Reference in New Issue
Block a user