Merge pull request #766 from PraveenSinghRao/lockfix
move debug variable under ifndef NDEBUG
This commit is contained in:
commit
d662b8dab5
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user