Merge pull request #766 from PraveenSinghRao/lockfix

move debug variable under ifndef NDEBUG
This commit is contained in:
Siying Dong 2015-10-14 10:07:17 -07:00
commit d662b8dab5

View File

@ -114,8 +114,11 @@ class CondVar;
class Mutex {
public:
/* implicit */ Mutex(bool adaptive = false) : locked_(false) {
}
/* implicit */ Mutex(bool adaptive = false)
#ifndef NDEBUG
: locked_(false)
#endif
{ }
~Mutex();