mirror of https://github.com/axmolengine/axmol.git
Consider mutex use, which object dou you want guard?
This commit is contained in:
parent
3c7ede5859
commit
37ddd1cbfa
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue