diff options
Diffstat (limited to 'src/chatManager.hpp')
| -rw-r--r-- | src/chatManager.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/chatManager.hpp b/src/chatManager.hpp index b48dcdb..e77027e 100644 --- a/src/chatManager.hpp +++ b/src/chatManager.hpp @@ -1,6 +1,7 @@ #pragma once #include <memory> +#include <mutex> #include <optional> #include <string> #include <vector> @@ -19,5 +20,8 @@ class CChatManager { std::string fmtBroadcastMessage(const SMessage &msg); std::vector<SMessage> getChat() const; + + private: + mutable std::mutex m_mutex; }; inline std::unique_ptr<CChatManager> g_pChatManager; |
