Prechádzať zdrojové kódy

protect THREAD_SIMPLE_IMPL

David Rose 18 rokov pred
rodič
commit
050541c214
1 zmenil súbory, kde vykonal 5 pridanie a 0 odobranie
  1. 5 0
      panda/src/pipeline/threadSimpleManager.cxx

+ 5 - 0
panda/src/pipeline/threadSimpleManager.cxx

@@ -17,6 +17,9 @@
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
 #include "threadSimpleManager.h"
 #include "threadSimpleManager.h"
+
+#ifdef THREAD_SIMPLE_IMPL
+
 #include "threadSimpleImpl.h"
 #include "threadSimpleImpl.h"
 #include "blockerSimple.h"
 #include "blockerSimple.h"
 
 
@@ -450,3 +453,5 @@ kill_non_joinable(ThreadSimpleManager::Sleeping &threads) {
   make_heap(new_threads.begin(), new_threads.end(), CompareStartTime());
   make_heap(new_threads.begin(), new_threads.end(), CompareStartTime());
   threads.swap(new_threads);
   threads.swap(new_threads);
 }
 }
+
+#endif // THREAD_SIMPLE_IMPL