mirror of https://gitee.com/bigwinds/arangodb
hmpf
This commit is contained in:
parent
6853359e56
commit
aa4d117999
|
@ -47,14 +47,13 @@ using namespace arangodb;
|
||||||
using namespace arangodb::basics;
|
using namespace arangodb::basics;
|
||||||
using namespace arangodb::pregel;
|
using namespace arangodb::pregel;
|
||||||
|
|
||||||
|
|
||||||
#ifdef TRI_SHOW_LOCK_TIME
|
#ifdef TRI_SHOW_LOCK_TIME
|
||||||
|
|
||||||
#define MY_READ_LOCKER(obj, lock) \
|
#define MY_READ_LOCKER(obj, lock) \
|
||||||
ReadLocker<ReadWriteLock> obj(&lock, __FILE__, __LINE__)
|
ReadLocker<ReadWriteLock> obj(&lock, __FILE__, __LINE__)
|
||||||
|
|
||||||
#define MY_WRITE_LOCKER(obj, lock) \
|
#define MY_WRITE_LOCKER(obj, lock) \
|
||||||
WriteLocker<std::decay<decltype (lock)>::type> obj(&lock, __FILE__, __LINE__)
|
WriteLocker<ReadWriteLock> obj(&lock, __FILE__, __LINE__)
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue