diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-03-09 14:16:46 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-03-20 23:44:57 +0800 |
| commit | 8ab26f85e474dcdbbb2c2fb94b6a087f71952bf8 (patch) | |
| tree | 752c1129db2d363dfd96dd15d27c34f2e126a4e3 /src/chatServer.hpp | |
| parent | 938ca89e48c2a01d6aa072f01545fa2da585486c (diff) | |
feat: broadcast message from one client to the rest, making chat actually possible
fix(chatServer, CSessionManager): .join sessionThread properly
cleanup(server): unused header
Diffstat (limited to 'src/chatServer.hpp')
| -rw-r--r-- | src/chatServer.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/chatServer.hpp b/src/chatServer.hpp index 7109593..e205eb1 100644 --- a/src/chatServer.hpp +++ b/src/chatServer.hpp @@ -1,4 +1,5 @@ #include <memory> +#include <thread> class CChatServer { public: @@ -9,6 +10,7 @@ public: private: void initManagers(); void initServer(); + std::jthread m_sessionThread; }; inline std::unique_ptr<CChatServer> g_pChatServer; |
