2
0
dmuratshin 9 жил өмнө
parent
commit
3523d621d5

+ 6 - 0
oxygine/src/res/CreateResourceContext.cpp

@@ -12,12 +12,18 @@ namespace oxygine
 
 
     void LoadResourcesContext::init()
     void LoadResourcesContext::init()
     {
     {
+#ifndef OX_NO_MT
         _mainThread = pthread_self();
         _mainThread = pthread_self();
+#endif
     }
     }
 
 
     bool isMainThread()
     bool isMainThread()
     {
     {
+#ifdef OX_NO_MT
+        return true;
+#else
         return pthread_equal(_mainThread, pthread_self()) != 0;
         return pthread_equal(_mainThread, pthread_self()) != 0;
+#endif
     }
     }
 
 
     LoadResourcesContext* LoadResourcesContext::get()
     LoadResourcesContext* LoadResourcesContext::get()