David Rose 20 vuotta sitten
vanhempi
sitoutus
82ccb687e4

+ 4 - 0
panda/src/pstatclient/pStatThread.cxx

@@ -27,5 +27,9 @@
 ////////////////////////////////////////////////////////////////////
 Thread *PStatThread::
 get_thread() const {
+#ifdef DO_PSTATS
   return _client->get_thread_object(_index);
+#else
+  return Thread::get_current_thread();
+#endif
 }

+ 1 - 1
panda/src/putil/pipelineCyclerTrueImpl.I

@@ -117,7 +117,7 @@ INLINE void PipelineCyclerTrueImpl::
 release_write(CycleData *pointer) {
 #ifdef NDEBUG
   int pipeline_stage = Thread::get_current_thread()->get_pipeline_stage();
-  return release_write_stage(pipeline_stage);
+  return release_write_stage(pipeline_stage, pointer);
 #else
   _lock.release();
 #endif