Home
last modified time | relevance | path

Searched refs:UniqueWriteGuard (Results 1 - 2 of 2) sorted by relevance

/commonlibrary/c_utils/base/include/
H A Drwlock.h114 * @brief UniqueWriteGuard object controls the ownership of a lockable object
122 class UniqueWriteGuard : NoCopyable { class
124 explicit UniqueWriteGuard(RWLockable &rwLockable) in UniqueWriteGuard() function in OHOS::Utils::UniqueWriteGuard
130 ~UniqueWriteGuard() override
136 UniqueWriteGuard() = delete;
144 * @brief UniqueWriteGuard object controls the ownership of a lockable object
/commonlibrary/c_utils/base/test/benchmarktest/rwlock_benchmark_test/
H A Drwlock_benchmark_test.cpp187 * @tc.desc: This benchmark test is designed to test the functionality of the UniqueWriteGuard class.
189 * the UniqueWriteGuard class. The WriteStr method of the TestRWLock class is then called to write a string to
191 * because the UniqueWriteGuard instance goes out of scope. The ReadStr method of the TestRWLock class is then called
203 OHOS::Utils::UniqueWriteGuard<OHOS::Utils::RWLock> guard(rwLock_); in BENCHMARK_F()

Completed in 3 milliseconds