mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-21 18:29:05 +02:00
Debugger: Use a lock for memory reallocs.
Simpler this way, no need to remember to lock memory.
This commit is contained in:
1 parent
8598fc9912
commit
3193772e78
4 files changed
+17
-7
No files matched your search
@@ -20,6 +20,7 @@
|
||||
#include "thread/threadutil.h"
|
||||
#include "Core/Debugger/WebSocket.h"
|
||||
#include "Core/Debugger/WebSocket/WebSocketUtils.h"
|
||||
#include "Core/MemMap.h"
|
||||
|
||||
// This WebSocket (connected through the same port as disc sharing) allows API/debugger access to PPSSPP.
|
||||
// Currently, the only subprotocol "debugger.ppsspp.org" uses a simple JSON based interface.
|
||||
@@ -88,6 +89,7 @@ static void WebSocketNotifyLifecycle(CoreLifecycle stage) {
|
||||
switch (stage) {
|
||||
case CoreLifecycle::STARTING:
|
||||
case CoreLifecycle::STOPPING:
|
||||
case CoreLifecycle::MEMORY_REINITING:
|
||||
if (debuggersConnected > 0) {
|
||||
DEBUG_LOG(SYSTEM, "Waiting for debugger to complete on shutdown");
|
||||
}
|
||||
@@ -96,6 +98,7 @@ static void WebSocketNotifyLifecycle(CoreLifecycle stage) {
|
||||
|
||||
case CoreLifecycle::START_COMPLETE:
|
||||
case CoreLifecycle::STOPPED:
|
||||
case CoreLifecycle::MEMORY_REINITED:
|
||||
lifecycleLock.unlock();
|
||||
if (debuggersConnected > 0) {
|
||||
DEBUG_LOG(SYSTEM, "Debugger ready for shutdown");
|
||||
|
||||
Reference in new issue
Block a user