summaryrefslogtreecommitdiff
path: root/src/commandHandler.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commandHandler.hpp')
-rw-r--r--src/commandHandler.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/commandHandler.hpp b/src/commandHandler.hpp
index bce93d2..2c8fd30 100644
--- a/src/commandHandler.hpp
+++ b/src/commandHandler.hpp
@@ -4,6 +4,7 @@
#include <any>
#include <functional>
#include <memory>
+#include <mutex>
#include <netinet/in.h>
#include <string>
#include <vector>
@@ -67,5 +68,7 @@ class CCommandHandler {
SResult exeCommand(const SCommand &command, const std::string &args) const;
std::vector<SCommand> m_vCommands;
+
+ mutable std::mutex m_mutex;
};
inline std::unique_ptr<CCommandHandler> g_pCommandHandler;