Reduced thread name length (#39)

pthread_setname_np() restricts thread name length to 16 characters.
This commit is contained in:
Björn Ritzl 2021-03-18 20:41:03 +01:00 committed by GitHub
parent cba11de5f1
commit 97cca427d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -819,7 +819,7 @@ static dmExtension::Result OnUpdate(dmExtension::Params* params)
emscripten_websocket_set_onclose_callback(ws, conn, Emscripten_WebSocketOnClose); emscripten_websocket_set_onclose_callback(ws, conn, Emscripten_WebSocketOnClose);
emscripten_websocket_set_onmessage_callback(ws, conn, Emscripten_WebSocketOnMessage); emscripten_websocket_set_onmessage_callback(ws, conn, Emscripten_WebSocketOnMessage);
#else #else
conn->m_ConnectionThread = dmThread::New((dmThread::ThreadStart)ConnectionWorker, 0x80000, conn, "WebSocketConnectionThread"); conn->m_ConnectionThread = dmThread::New((dmThread::ThreadStart)ConnectionWorker, 0x80000, conn, "WSConnect");
#endif #endif
SetState(conn, STATE_CONNECTING); SetState(conn, STATE_CONNECTING);
} }