use jthread

This commit is contained in:
2024-08-07 11:50:07 +02:00
parent af3ac8d37c
commit adb6dce08a
4 changed files with 12 additions and 10 deletions

View File

@@ -33,7 +33,7 @@ class EnetServer : private NonCopyable {
Nz::ENetHost m_Host;
bool m_Running;
std::thread m_Thread;
std::jthread m_Thread;
std::map<std::uint16_t, std::unique_ptr<EnetConnection>> m_Connections;
};