Consider mutex use, which object dou you want guard?

This commit is contained in:
halx99 2020-08-18 12:48:16 +08:00
parent 3c7ede5859
commit 37ddd1cbfa
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ THE SOFTWARE.
#include "base/CCDirector.h"
#include "platform/CCFileUtils.h"
#define DECLARE_GUARD std::lock_guard<std::recursive_mutex> mutexGuard(_mutex)
#define DECLARE_GUARD (void)0 // std::lock_guard<std::recursive_mutex> mutexGuard(_mutex)
NS_CC_BEGIN

View File

@ -39,7 +39,7 @@ THE SOFTWARE.
using namespace std;
#define DECLARE_GUARD std::lock_guard<std::recursive_mutex> mutexGuard(_mutex)
#define DECLARE_GUARD (void)0 // std::lock_guard<std::recursive_mutex> mutexGuard(_mutex)
NS_CC_BEGIN