diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-12-20 14:33:43 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-12-20 14:33:43 -0500 |
commit | 3c49081df34fb1801063c0b538d12d4422fcf3f0 (patch) | |
tree | f4d267d953c97b0ee3e78730d8e36484abf7f096 /src/ipc_state.h | |
parent | 5a7559e39d2cd8306a99adbc6d39e90716b14687 (diff) | |
download | lingo-ap-tracker-3c49081df34fb1801063c0b538d12d4422fcf3f0.tar.gz lingo-ap-tracker-3c49081df34fb1801063c0b538d12d4422fcf3f0.tar.bz2 lingo-ap-tracker-3c49081df34fb1801063c0b538d12d4422fcf3f0.zip |
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.
Diffstat (limited to 'src/ipc_state.h')
-rw-r--r-- | src/ipc_state.h | 2 |
1 files changed, 1 insertions, 1 deletions
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(); | |||
20 | 20 | ||
21 | std::optional<std::tuple<int, int>> IPC_GetPlayerPosition(); | 21 | std::optional<std::tuple<int, int>> IPC_GetPlayerPosition(); |
22 | 22 | ||
23 | const std::set<std::string>& IPC_GetSolvedPanels(); | 23 | std::set<std::string> IPC_GetSolvedPanels(); |
24 | 24 | ||
25 | #endif /* end of include guard: IPC_STATE_H_6B3B0958 */ | 25 | #endif /* end of include guard: IPC_STATE_H_6B3B0958 */ |