Przeglądaj źródła

explicit calls to init_type()

David Rose 19 lat temu
rodzic
commit
ed1fd25236

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

@@ -30,6 +30,7 @@ TypeHandle ExternalThread::_type_handle;
 ////////////////////////////////////////////////////////////////////
 ExternalThread::
 ExternalThread() : Thread("External", "External") {
+  init_type();  // in case static init comes in the wrong order
   _started = true;
 }
 

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

@@ -27,6 +27,7 @@ TypeHandle MainThread::_type_handle;
 ////////////////////////////////////////////////////////////////////
 MainThread::
 MainThread() : Thread("Main", "Main") {
+  init_type();  // in case static init comes in the wrong order
   _started = true;
 }