提交 d662b8da 编写于 作者: S Siying Dong

Merge pull request #766 from PraveenSinghRao/lockfix

move debug variable under ifndef NDEBUG
...@@ -114,8 +114,11 @@ class CondVar; ...@@ -114,8 +114,11 @@ class CondVar;
class Mutex { class Mutex {
public: public:
/* implicit */ Mutex(bool adaptive = false) : locked_(false) { /* implicit */ Mutex(bool adaptive = false)
} #ifndef NDEBUG
: locked_(false)
#endif
{ }
~Mutex(); ~Mutex();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册