From 920507bff803647c79dfce27c4c265b2caee7f8d Mon Sep 17 00:00:00 2001
From: Ferenc Szontágh <szf@fsociety.hu>
Date: Thu, 27 Jun 2024 21:04:53 +0000
Subject: [PATCH] some refactor, addedd google loggin', corrected plugin handling

---
 src/Server.h |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/Server.h b/src/Server.h
index 68bd604..ea4ad81 100644
--- a/src/Server.h
+++ b/src/Server.h
@@ -6,9 +6,11 @@
 #include <memory>
 #include <dlfcn.h>
 #include <atomic>
+#include <glog/logging.h>
 #include "IPC.h"
 #include "PluginInterface.h"
 #include "Config.h"
+
 
 class Server {
 public:
@@ -25,10 +27,10 @@
     void handleIPC();
     static void handleSignal(int signal);
 
-    std::vector<std::unique_ptr<std::thread>> threadPool;
+    std::vector<std::thread> threadPool;  // Use std::thread directly
     std::vector<void*> pluginHandles;
     std::vector<std::shared_ptr<IPlugin>> plugins;
-    IPC ipc;
+    std::unique_ptr<IPC> ipc;
     Config config;
     std::atomic<bool> reloadConfigFlag;
 

--
Gitblit v1.9.3