Make hyprctl thread safe
This commit is contained in:
parent
304b93a4f6
commit
883d389bc2
3 changed files with 63 additions and 13 deletions
|
|
@ -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;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue