Home
last modified time | relevance | path

Searched refs:RWLock (Results 1 - 5 of 5) sorted by relevance

/commonlibrary/c_utils/base/src/
H A Drwlock.cpp22 RWLock::RWLock(bool writeFirst) in RWLock() function in OHOS::Utils::RWLock
27 void RWLock::LockRead() in LockRead()
48 void RWLock::UnLockRead() in UnLockRead()
58 void RWLock::LockWrite() in LockWrite()
76 void RWLock::UnLockWrite() in UnLockWrite()
/commonlibrary/c_utils/base/include/
H A Drwlock.h19 * @brief Provides interfaces of RWLock in c_utils.
34 * @brief Implements the <b>RWLock</b> class to ensure that read and write
37 * Under RWLock, write operations are mutually exclusive,
41 class RWLock : NoCopyable { class
52 * @brief Creates an <b>RWLock</b> object.
54 * @param writeFirst Indicates whether the <b>RWLock</b> object is write-first.
56 RWLock() : RWLock(true) {} in RWLock() function in OHOS::Utils::RWLock
57 explicit RWLock(bool writeFirst);
60 * @brief Destroys this <b>RWLock</
[all...]
/commonlibrary/c_utils/base/test/benchmarktest/rwlock_benchmark_test/
H A Drwlock_benchmark_test.cpp53 // This class is designed for test RWLock. "buf_" is protected by "rwLock_".
84 Utils::RWLock rwLock_;
93 * @tc.desc: RWLock here is under write-first mode. If there are some writing operation waiting,
129 * @tc.desc: RWLock here is not under write-first mode. So if there are writing and reading operations in queue
160 * @tc.desc: This test case validates the default constructor of RWLock. By default, the RWLock is in write-first mode.
162 * a default RWLock and attempts to perform read operations while write operations are pending.
188 * In this test, a write lock is acquired on an instance of the RWLock class using an instance of
200 OHOS::Utils::RWLock rwLock_; in BENCHMARK_F()
203 OHOS::Utils::UniqueWriteGuard<OHOS::Utils::RWLock> guar in BENCHMARK_F()
[all...]
/commonlibrary/c_utils/base/test/fuzztest/refbase_fuzzer/
H A Drefbase_fuzzer.cpp41 TestRefBase(bool* deleted, Utils::RWLock& rwLock) : deleted_(deleted), rwLock_(rwLock) in TestRefBase()
61 Utils::RWLock& rwLock_;
84 Utils::RWLock g_deletedLock;
85 Utils::RWLock g_strongLock;
86 Utils::RWLock g_attemptLock;
/commonlibrary/c_utils/base/test/unittest/common/
H A Dutils_rwlock_test.cpp29 // This class is designed for test RWLock. "buf" is protected by "rwLock".
58 Utils::RWLock rwLock;
67 * @tc.desc: RWLock here is under write-first mode. If there are some writing operation waiting,
96 * @tc.desc: RWLock here is not under write-first mode. So if there are writing and reading operations in queue

Completed in 3 milliseconds