浏览代码

libretro: Minor mutex fix

Rob Loach 2 周之前
父节点
当前提交
cfd3f4e6ca
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/physfs_platform_libretro.c

+ 1 - 1
src/physfs_platform_libretro.c

@@ -208,7 +208,7 @@ void __PHYSFS_platformDestroyMutex(void *mutex)
 int __PHYSFS_platformGrabMutex(void *mutex)
 {
 #ifdef PHYSFS_PLATFORM_LIBRETRO_NO_THREADS
-    return 0;
+    return 1; /* Single-threaded, so we ignore this by returning success. */
 #else
     PthreadMutex *m = (PthreadMutex *) mutex;
     uintptr_t tid = sthread_get_current_thread_id();