From b479a2c75662add4ebd3d8a1b3ce831ad595126a Mon Sep 17 00:00:00 2001 From: Arisotura Date: Sat, 11 Mar 2023 21:16:37 +0100 Subject: [PATCH] integrate local MP comm within the IPC module --- src/frontend/qt_sdl/IPC.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontend/qt_sdl/IPC.cpp b/src/frontend/qt_sdl/IPC.cpp index 1836a6d0..1372eae9 100644 --- a/src/frontend/qt_sdl/IPC.cpp +++ b/src/frontend/qt_sdl/IPC.cpp @@ -98,6 +98,8 @@ const u32 kMPReplyEnd = kBufferSize; int MPRecvTimeout; int MPLastHostID; +int MPRecvTimeout; +int MPLastHostID; // we need to come up with our own abstraction layer for named semaphores // because QSystemSemaphore doesn't support waiting with a timeout @@ -546,6 +548,7 @@ void ProcessCommands() } Buffer->lock(); + // TODO: also what if, say, we get multiple pause commands before CommandReceived() is called? } Buffer->unlock();