Home
last modified time | relevance | path

Searched refs:Mutex (Results 1 – 25 of 60) sorted by relevance

123

/rocksdb-6.9/third-party/folly/folly/synchronization/detail/
DProxyLockable-inl.h46 template <typename Mutex>
53 template <typename Mutex>
60 template <typename Mutex>
66 template <typename Mutex>
67 ProxyLockableUniqueLock<Mutex>& ProxyLockableUniqueLock<Mutex>::operator=(
74 template <typename Mutex>
81 template <typename Mutex>
91 template <typename Mutex>
102 template <typename Mutex>
113 template <typename Mutex>
[all …]
DProxyLockable.h31 template <typename Mutex>
34 using mutex_type = Mutex;
138 template <typename Mutex>
139 class ProxyLockableLockGuard : private ProxyLockableUniqueLock<Mutex> {
141 using mutex_type = Mutex;
/rocksdb-6.9/util/
Dthread_local.cc102 static port::Mutex* Mutex();
142 port::Mutex mutex_;
353 Mutex()->AssertHeld(); in AddThreadData()
362 Mutex()->AssertHeld(); in RemoveThreadData()
441 MutexLock l(Mutex()); in Scrape()
454 MutexLock l(Mutex()); in Fold()
470 MutexLock l(Mutex()); in SetHandler()
475 Mutex()->AssertHeld(); in GetHandler()
484 MutexLock l(Mutex()); in GetId()
495 MutexLock l(Mutex()); in PeekId()
[all …]
Dthread_local_test.cc30 Params(port::Mutex* m, port::CondVar* c, int* u, int n, in Params()
42 port::Mutex* mu;
65 port::Mutex mu; in TEST_F()
116 port::Mutex mu; in TEST_F()
161 port::Mutex mu1; in TEST_F()
166 port::Mutex mu2; in TEST_F()
264 port::Mutex mu; in TEST_F()
299 port::Mutex mu; in TEST_F()
349 port::Mutex mu; in TEST_F()
424 port::Mutex mu; in TEST_F()
[all …]
Dmutexlock.h31 explicit MutexLock(port::Mutex *mu) : mu_(mu) { in MutexLock()
41 port::Mutex *const mu_;
Drepeatable_thread_test.cc28 ROCKSDB_NAMESPACE::port::Mutex mutex; in TEST_F()
Drate_limiter.h79 mutable port::Mutex request_mutex_;
/rocksdb-6.9/port/
Dport_posix.h108 class Mutex {
110 explicit Mutex(bool adaptive = kDefaultToAdaptiveMutex);
112 Mutex(const Mutex&) = delete;
113 void operator=(const Mutex&) = delete;
115 ~Mutex();
152 explicit CondVar(Mutex* mu);
161 Mutex* mu_;
Dport_posix.cc54 Mutex::Mutex(bool adaptive) { in Mutex() function in ROCKSDB_NAMESPACE::port::Mutex
74 Mutex::~Mutex() { PthreadCall("destroy mutex", pthread_mutex_destroy(&mu_)); } in ~Mutex()
76 void Mutex::Lock() { in Lock()
83 void Mutex::Unlock() { in Unlock()
90 void Mutex::AssertHeld() { in AssertHeld()
96 CondVar::CondVar(Mutex* mu) in CondVar()
Dport_example.h30 class Mutex {
32 Mutex();
33 ~Mutex();
51 explicit CondVar(Mutex* mu);
/rocksdb-6.9/port/win/
Dport_win.h124 class Mutex {
127 /* implicit */ Mutex(bool adaptive = kDefaultToAdaptiveMutex)
133 ~Mutex();
158 Mutex(const Mutex&) = delete;
159 void operator=(const Mutex&) = delete;
199 explicit CondVar(Mutex* mu) : mu_(mu) { in CondVar()
217 Mutex* mu_;
Dport_win.cc69 Mutex::~Mutex() {} in ~Mutex()
/rocksdb-6.9/java/rocksjni/
Dcomparatorjnicallback.h105 inline void MaybeLockForReuse(const std::unique_ptr<port::Mutex>& mutex,
107 inline void MaybeUnlockForReuse(const std::unique_ptr<port::Mutex>& mutex,
116 std::unique_ptr<port::Mutex> mtx_compare;
118 std::unique_ptr<port::Mutex> mtx_shortest;
120 std::unique_ptr<port::Mutex> mtx_short;
Dcomparatorjnicallback.cc103 mtx_compare = std::unique_ptr<port::Mutex>(new port::Mutex(adaptive)); in ComparatorJniCallback()
104 mtx_shortest = std::unique_ptr<port::Mutex>(new port::Mutex(adaptive)); in ComparatorJniCallback()
105 mtx_short = std::unique_ptr<port::Mutex>(new port::Mutex(adaptive)); in ComparatorJniCallback()
540 const std::unique_ptr<port::Mutex>& mutex, const bool cond) const { in MaybeLockForReuse()
549 const std::unique_ptr<port::Mutex>& mutex, const bool cond) const { in MaybeUnlockForReuse()
/rocksdb-6.9/db_stress_tool/
Ddb_stress_shared_state.h163 ptr.reset(new port::Mutex); in SharedState()
178 port::Mutex* GetMutex() { return &mu_; } in GetMutex()
220 port::Mutex* GetMutexForKey(int cf, int64_t key) { in GetMutexForKey()
332 port::Mutex mu_;
358 std::vector<std::vector<std::unique_ptr<port::Mutex>>> key_locks_;
/rocksdb-6.9/third-party/folly/folly/synchronization/test/
DDistributedMutexTest.cpp92 using Mutex = _t<std::decay<decltype(mutex)>>; in lockWithTryAndTimedNThreads() typedef
93 auto lck = std::unique_lock<Mutex>{mutex, std::defer_lock}; in lockWithTryAndTimedNThreads()
104 using Mutex = _t<std::decay<decltype(mutex)>>; in lockWithTryAndTimedNThreads() typedef
105 auto lck = std::unique_lock<Mutex>{mutex, std::defer_lock}; in lockWithTryAndTimedNThreads()
273 using Mutex = _t<std::decay<decltype(mutex)>>; in combineWithTryLockNThreads() typedef
274 auto lck = std::unique_lock<Mutex>{mutex, std::defer_lock}; in combineWithTryLockNThreads()
359 using Mutex = _t<std::decay<decltype(mutex)>>; in combineWithLockTryAndTimedNThreads() typedef
360 auto lck = std::unique_lock<Mutex>{mutex, std::defer_lock}; in combineWithLockTryAndTimedNThreads()
371 using Mutex = _t<std::decay<decltype(mutex)>>; in combineWithLockTryAndTimedNThreads() typedef
372 auto lck = std::unique_lock<Mutex>{mutex, std::defer_lock}; in combineWithLockTryAndTimedNThreads()
/rocksdb-6.9/cache/
Dcache_bench.cc68 port::Mutex* GetMutex() { in GetMutex()
105 port::Mutex mu_;
/rocksdb-6.9/test_util/
Dfault_injection_test_fs.h92 port::Mutex mutex_;
242 port::Mutex mutex_;
/rocksdb-6.9/utilities/persistent_cache/
Dpersistent_cache_util.h60 mutable port::Mutex lock_;
Dblock_cache_tier_file_buffer.h121 port::Mutex lock_; // Sync lock
/rocksdb-6.9/monitoring/
Dinstrumented_mutex.h45 port::Mutex mutex_;
/rocksdb-6.9/utilities/blob_db/
Dblob_db_impl.h421 mutable port::Mutex write_mutex_;
481 mutable port::Mutex delete_file_mutex_;
/rocksdb-6.9/db/
Dwal_manager.h99 port::Mutex read_first_record_cache_mutex_;
/rocksdb-6.9/logging/
Dauto_roll_logger.h155 mutable port::Mutex mutex_;
/rocksdb-6.9/file/
Dsst_file_manager_impl.h154 port::Mutex mu_;

123