From 883d389bc283ac6b29b303a94f063e5575f8416f Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 21 Apr 2022 22:00:03 +0200 Subject: Make hyprctl thread safe --- src/debug/HyprCtl.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/debug/HyprCtl.hpp') diff --git a/src/debug/HyprCtl.hpp b/src/debug/HyprCtl.hpp index 1efe468f..3da4aa07 100644 --- a/src/debug/HyprCtl.hpp +++ b/src/debug/HyprCtl.hpp @@ -8,5 +8,10 @@ namespace HyprCtl { void startHyprCtlSocket(); void tickHyprCtl(); + // very simple thread-safe request method + inline bool requestMade = false; + inline bool requestReady = false; + inline std::string request = ""; + inline std::ifstream requestStream; }; \ No newline at end of file -- cgit v1.2.3