Revision: 33983
http://sourceforge.net/p/opalvoip/code/33983
Author: rjongbloed
Date: 2015-09-07 10:26:16 +0000 (Mon, 07 Sep 2015)
Log Message:
-----------
Fixed initialisation of thread name on Linux (new unique ID change)
Modified Paths:
--------------
ptlib/trunk/src/ptlib/unix/tlibthrd.cxx
Modified: ptlib/trunk/src/ptlib/unix/tlibthrd.cxx
===================================================================
--- ptlib/trunk/src/ptlib/unix/tlibthrd.cxx 2015-09-05 12:38:24 UTC (rev 33982)
+++ ptlib/trunk/src/ptlib/unix/tlibthrd.cxx 2015-09-07 10:26:16 UTC (rev 33983)
@@ -313,13 +313,13 @@
PAssert(PX_state == PX_starting, PLogicError);
PX_state = PX_running;
- SetThreadName(GetThreadName());
-
#if defined(P_LINUX)
PX_linuxId = GetCurrentUniqueIdentifier();
PX_startTick = PTimer::Tick();
#endif
+ SetThreadName(GetThreadName());
+
pthread_mutex_unlock(&PX_suspendMutex);
PX_Suspended();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|