fix freebsd compilation

This commit is contained in:
zjeffer
2025-02-19 21:15:18 +01:00
parent a4989cedae
commit 37c6cd42f5
3 changed files with 2 additions and 4 deletions

View File

@ -2,7 +2,6 @@
#include <filesystem>
#include <list>
#include <memory>
#include <mutex>
#include <string>
#include <thread>
@ -38,7 +37,7 @@ class IPC {
void socketListener();
void parseIPC(const std::string&);
std::jthread ipcThread_;
std::thread ipcThread_;
std::mutex callbackMutex_;
util::JsonParser parser_;
std::list<std::pair<std::string, EventHandler*>> callbacks_;

View File

@ -45,7 +45,7 @@ std::filesystem::path IPC::getSocketFolder(const char* instanceSig) {
IPC::IPC() {
// will start IPC and relay events to parseIPC
ipcThread_ = std::jthread([this]() { socketListener(); });
ipcThread_ = std::thread([this]() { socketListener(); });
}
IPC::~IPC() {

View File

@ -7,7 +7,6 @@
#include <algorithm>
#include <shared_mutex>
#include <thread>
#include <vector>
#include "modules/hyprland/backend.hpp"