From 3c49081df34fb1801063c0b538d12d4422fcf3f0 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 20 Dec 2024 14:33:43 -0500 Subject: Fixed remaining thread unsafe APState/IPCState reads Still would like to add some kind of wrapper object that TrackerState could use to read APState without locking, since it'll only ever be called from the thread that would do the mutating, but this is fine for now. --- src/ipc_state.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ipc_state.h') diff --git a/src/ipc_state.h b/src/ipc_state.h index 84f3d29..7c9d68d 100644 --- a/src/ipc_state.h +++ b/src/ipc_state.h @@ -20,6 +20,6 @@ bool IPC_IsConnected(); std::optional> IPC_GetPlayerPosition(); -const std::set& IPC_GetSolvedPanels(); +std::set IPC_GetSolvedPanels(); #endif /* end of include guard: IPC_STATE_H_6B3B0958 */ -- cgit 1.4.1