Fix race condition in VS on thread naming.
This commit is contained in:
parent
2328b34308
commit
20a3172ebb
|
@ -287,6 +287,7 @@ X_STATUS XThread::Exit(int exit_code) {
|
||||||
|
|
||||||
static uint32_t __stdcall XThreadStartCallbackWin32(void* param) {
|
static uint32_t __stdcall XThreadStartCallbackWin32(void* param) {
|
||||||
XThread* thread = reinterpret_cast<XThread*>(param);
|
XThread* thread = reinterpret_cast<XThread*>(param);
|
||||||
|
thread->set_name(thread->name());
|
||||||
xe::Profiler::ThreadEnter(thread->name().c_str());
|
xe::Profiler::ThreadEnter(thread->name().c_str());
|
||||||
current_thread_tls = thread;
|
current_thread_tls = thread;
|
||||||
thread->Execute();
|
thread->Execute();
|
||||||
|
|
Loading…
Reference in New Issue