From 37ddd1cbfa3240a1dfba1b50b2d48ecb136cb3e5 Mon Sep 17 00:00:00 2001 From: halx99 Date: Tue, 18 Aug 2020 12:48:16 +0800 Subject: [PATCH] Consider mutex use, which object dou you want guard? --- cocos/platform/apple/CCFileUtils-apple.mm | 2 +- cocos/platform/linux/CCFileUtils-linux.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cocos/platform/apple/CCFileUtils-apple.mm b/cocos/platform/apple/CCFileUtils-apple.mm index 427f436591..803509ab61 100644 --- a/cocos/platform/apple/CCFileUtils-apple.mm +++ b/cocos/platform/apple/CCFileUtils-apple.mm @@ -36,7 +36,7 @@ THE SOFTWARE. #include "base/CCDirector.h" #include "platform/CCFileUtils.h" -#define DECLARE_GUARD std::lock_guard mutexGuard(_mutex) +#define DECLARE_GUARD (void)0 // std::lock_guard mutexGuard(_mutex) NS_CC_BEGIN diff --git a/cocos/platform/linux/CCFileUtils-linux.cpp b/cocos/platform/linux/CCFileUtils-linux.cpp index a8647dceef..b7183cf779 100644 --- a/cocos/platform/linux/CCFileUtils-linux.cpp +++ b/cocos/platform/linux/CCFileUtils-linux.cpp @@ -39,7 +39,7 @@ THE SOFTWARE. using namespace std; -#define DECLARE_GUARD std::lock_guard mutexGuard(_mutex) +#define DECLARE_GUARD (void)0 // std::lock_guard mutexGuard(_mutex) NS_CC_BEGIN