mirror of https://gitee.com/bigwinds/arangodb
Fix a bug in mutex locker
This commit is contained in:
parent
becca2bdbb
commit
c2450b7913
|
@ -40,7 +40,7 @@ using namespace arangodb::basics;
|
|||
#ifdef TRI_SHOW_LOCK_TIME
|
||||
|
||||
MutexLocker::MutexLocker(Mutex* mutex, char const* file, int line)
|
||||
: _mutex(mutex), isLocked(true), _isLocked(true), _file(file), _line(line), _time(0.0) {
|
||||
: _mutex(mutex), _isLocked(true), _file(file), _line(line), _time(0.0) {
|
||||
double t = TRI_microtime();
|
||||
_mutex->lock();
|
||||
_time = TRI_microtime() - t;
|
||||
|
|
Loading…
Reference in New Issue