Skip to content

Commit

Permalink
use ReadWriteLockCPP11 instead of ReadWriteLock
Browse files Browse the repository at this point in the history
ReadWriteLock is now a typedef for ReadWriteLockCPP11
one of the classes will finally be removed when it is known which locking concept is superior
  • Loading branch information
jsteemann committed Mar 29, 2017
1 parent bf6e3bd commit d99945e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/Basics/ReadWriteLock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#include "ReadWriteLock.h"

#if 0
using namespace arangodb::basics;

////////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -127,3 +128,5 @@ void ReadWriteLock::unlockRead() {
void ReadWriteLock::unlockWrite() {
TRI_WriteUnlockReadWriteLock(&_rwlock);
}

#endif
7 changes: 7 additions & 0 deletions lib/Basics/ReadWriteLock.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@

#include "Basics/Common.h"
#include "Basics/locks.h"
#include "Basics/ReadWriteLockCPP11.h"

namespace arangodb {
namespace basics {

typedef ReadWriteLockCPP11 ReadWriteLock;

#if 0
/// @brief read-write lock
class ReadWriteLock {
ReadWriteLock(ReadWriteLock const&) = delete;
Expand Down Expand Up @@ -82,6 +86,9 @@ class ReadWriteLock {
/// @brief write lock marker
bool _writeLocked;
};

#endif

}
}

Expand Down
1 change: 0 additions & 1 deletion lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ add_library(${LIB_ARANGO} STATIC
Basics/MutexLocker.cpp
Basics/Nonce.cpp
Basics/OpenFilesTracker.cpp
Basics/ReadWriteLock.cpp
Basics/ReadWriteLockCPP11.cpp
Basics/StaticStrings.cpp
Basics/StringBuffer.cpp
Expand Down

0 comments on commit d99945e

Please sign in to comment.