Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2019-08-14 03:26:54 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2019-08-14 03:27:01 +0300
commit3996516fcebdf76e2171a8fef7863f2a7e071e94 (patch)
treef446d94da0f2f4c9dcfe976ef01c1730d52d1870 /server/TracyWorker.cpp
parent92b6da7cc2a0f8e6d8f6452774957b4f13877089 (diff)
One more SetThreadName() to change.
Diffstat (limited to 'server/TracyWorker.cpp')
-rw-r--r--server/TracyWorker.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp
index 03ad19a4..96b12f54 100644
--- a/server/TracyWorker.cpp
+++ b/server/TracyWorker.cpp
@@ -263,8 +263,7 @@ Worker::Worker( const char* addr )
m_data.sourceLocationZonesReady = true;
#endif
- m_thread = std::thread( [this] { Exec(); } );
- SetThreadName( m_thread, "Tracy Worker" );
+ m_thread = std::thread( [this] { SetThreadName( "Tracy Worker" ); Exec(); } );
}
Worker::Worker( FileRead& f, EventType::Type eventMask )