]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Add separate Read/WriteUnlock methods in MutexRW.
authorBradley Grainger <bgrainger@gmail.com>
Mon, 16 Jun 2014 22:41:46 +0000 (15:41 -0700)
committerBradley Grainger <bgrainger@gmail.com>
Mon, 16 Jun 2014 22:41:46 +0000 (15:41 -0700)
commit2d02ec653355e4f558bd3bb2ef0e442520de26f9
tree590e44d5d6539d670adf4766f48b7d8864864a82
parent983c93d731290687a9dcfe0d48bea91708b2a035
Add separate Read/WriteUnlock methods in MutexRW.

Some platforms, particularly Windows, do not have a single method that can
release both a held reader lock and a held writer lock; instead, a
separate method (ReleaseSRWLockShared or ReleaseSRWLockExclusive) must be
called in each case.

This may also be necessary to back MutexRW with a shared_mutex in C++14;
the current language proposal includes both an unlock() and a
shared_unlock() method.
db/memtable.cc
port/port_posix.cc
port/port_posix.h
util/mutexlock.h
util/vectorrep.cc