summaryrefslogtreecommitdiff
path: root/src/sessionManager.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sessionManager.hpp')
-rw-r--r--src/sessionManager.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sessionManager.hpp b/src/sessionManager.hpp
index 3aa4b19..d9444b2 100644
--- a/src/sessionManager.hpp
+++ b/src/sessionManager.hpp
@@ -4,6 +4,7 @@
#include "format.hpp"
#include "session.hpp"
#include <memory>
+#include <mutex>
#include <thread>
#include <vector>
@@ -33,6 +34,8 @@ class CSessionManager {
std::vector<std::pair<std::jthread, std::shared_ptr<CSession>>> m_vSessions;
+ mutable std::mutex m_mutex;
+
friend class CChatManager;
};
inline std::shared_ptr<CSessionManager> g_pSessionManager;