Browse Source

pipeline: don't use uninitialized value for main thread unique id

See #554
rdb 6 years ago
parent
commit
f97ba9000b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      panda/src/pipeline/threadPosixImpl.cxx

+ 1 - 0
panda/src/pipeline/threadPosixImpl.cxx

@@ -58,6 +58,7 @@ ThreadPosixImpl::
 void ThreadPosixImpl::
 void ThreadPosixImpl::
 setup_main_thread() {
 setup_main_thread() {
   _status = S_running;
   _status = S_running;
+  _thread = pthread_self();
 }
 }
 
 
 /**
 /**