Home
last modified time | relevance | path

Searched refs:RWMutex (Results 1 – 19 of 19) sorted by relevance

/rocksdb-6.9/port/
Dport_posix.cc142 RWMutex::RWMutex() { in RWMutex() function in ROCKSDB_NAMESPACE::port::RWMutex
146 RWMutex::~RWMutex() { PthreadCall("destroy mutex", pthread_rwlock_destroy(&mu_)); } in ~RWMutex()
148 void RWMutex::ReadLock() { PthreadCall("read lock", pthread_rwlock_rdlock(&mu_)); } in ReadLock()
150 void RWMutex::WriteLock() { PthreadCall("write lock", pthread_rwlock_wrlock(&mu_)); } in WriteLock()
152 void RWMutex::ReadUnlock() { PthreadCall("read unlock", pthread_rwlock_unlock(&mu_)); } in ReadUnlock()
154 void RWMutex::WriteUnlock() { PthreadCall("write unlock", pthread_rwlock_unlock(&mu_)); } in WriteUnlock()
Dport_posix.h131 class RWMutex {
133 RWMutex();
135 RWMutex(const RWMutex&) = delete;
136 void operator=(const RWMutex&) = delete;
138 ~RWMutex();
/rocksdb-6.9/util/
Dmutexlock.h51 explicit ReadLock(port::RWMutex *mu) : mu_(mu) { in ReadLock()
61 port::RWMutex *const mu_;
69 explicit ReadUnlock(port::RWMutex *mu) : mu_(mu) { mu->AssertHeld(); } in ReadUnlock()
77 port::RWMutex *const mu_;
87 explicit WriteLock(port::RWMutex *mu) : mu_(mu) { in WriteLock()
97 port::RWMutex *const mu_;
/rocksdb-6.9/utilities/persistent_cache/
Dhash_table.h84 locks_.reset(new port::RWMutex[nlocks_]);
86 mlock(locks_.get(), nlocks_ * sizeof(port::RWMutex));
114 bool Find(const T& t, T* ret, port::RWMutex** ret_lock) { in Find()
119 port::RWMutex& lock = locks_[lock_idx]; in Find()
149 port::RWMutex* GetMutex(const T& t) { in GetMutex()
233 std::unique_ptr<port::RWMutex[]> locks_; // Granular locks
Dhash_table_evictable.h46 port::RWMutex& lock = GetMutex(h); in Insert()
66 port::RWMutex& lock = GetMutex(h); in Find()
141 port::RWMutex* GetMutex(T* t) { return hash_table::GetMutex(t); } in GetMutex()
157 port::RWMutex& GetMutex(const uint64_t h) { in GetMutex()
Dhash_table_test.cc94 port::RWMutex* rlock = nullptr; in TEST_F()
123 port::RWMutex* rlock = nullptr; in TEST_F()
Dhash_table_bench.cc218 port::RWMutex rwlock_;
240 port::RWMutex* rlock; in Lookup()
Dblock_cache_tier_metadata.cc50 port::RWMutex* rlock = nullptr; in Lookup()
Dblock_cache_tier.h141 port::RWMutex lock_; // Synchronization
Dblock_cache_tier_file.h138 port::RWMutex rwlock_; // synchronization mutex
/rocksdb-6.9/port/win/
Dport_win.h175 class RWMutex {
177 RWMutex() { InitializeSRWLock(&srwLock_); } in RWMutex() function
179 RWMutex(const RWMutex&) = delete;
180 void operator=(const RWMutex&) = delete;
/rocksdb-6.9/db/
Dmemtable.h409 port::RWMutex* GetLock(const Slice& key);
499 std::vector<port::RWMutex> locks_;
Dmemtable.cc446 port::RWMutex* MemTable::GetLock(const Slice& key) { in GetLock()
/rocksdb-6.9/utilities/transactions/
Dwrite_prepared_txn_db.h786 mutable port::RWMutex prepared_mutex_;
787 mutable port::RWMutex old_commit_map_mutex_;
788 mutable port::RWMutex commit_cache_mutex_;
789 mutable port::RWMutex snapshots_mutex_;
Dwrite_prepared_transaction_test.cc162 port::RWMutex prepared_mutex; in TEST()
/rocksdb-6.9/utilities/blob_db/
Dblob_file.h95 mutable port::RWMutex mutex_;
Dblob_db_impl.h418 mutable port::RWMutex mutex_;
/rocksdb-6.9/memtable/
Dvectorrep.cc103 mutable port::RWMutex rwlock_;
/rocksdb-6.9/env/
Dio_posix.h121 port::RWMutex cache_mutex_;