| | |
| | | #include <memory> |
| | | #include <dlfcn.h> |
| | | #include <atomic> |
| | | #include <glog/logging.h> |
| | | #include "IPC.h" |
| | | #include "PluginInterface.h" |
| | | #include "Config.h" |
| | | |
| | | |
| | | class Server { |
| | | public: |
| | |
| | | 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; |
| | | |