dmuratshin 9 年之前
父节点
当前提交
3523d621d5
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      oxygine/src/res/CreateResourceContext.cpp

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

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