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

@@ -26,7 +26,7 @@ class EnetClient : private NonCopyable {
EnetConnection m_Connection;
Nz::ENetHost m_Host;
Nz::ENetPeer* m_Peer;
std::thread m_Thread;
std::jthread m_Thread;
bool m_Running;
void Update();