Home
last modified time | relevance | path

Searched refs:rwlock (Results 1 - 4 of 4) sorted by relevance

/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/
H A Dmod.rs21 pub mod rwlock; modules
29 pub use rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard};
/commonlibrary/memory_utils/libpurgeablemem/c/src/
H A Dpurgeable_mem_c.c38 pthread_rwlock_t rwlock; member
99 int lockInitRet = pthread_rwlock_init(&(pugObj->rwlock), NULL); in PurgMemCreate_()
160 /* destroy rwlock */ in PurgMemDestroy()
161 int ret = pthread_rwlock_destroy(&(purgObj->rwlock)); in PurgMemDestroy()
240 int rwlockRet = pthread_rwlock_rdlock(&(purgObj->rwlock)); in TryBeginRead()
252 rwlockRet = pthread_rwlock_unlock(&(purgObj->rwlock)); in TryBeginRead()
264 int rwlockRet = pthread_rwlock_wrlock(&(purgObj->rwlock)); in BeginReadBuildData()
276 rwlockRet = pthread_rwlock_unlock(&(purgObj->rwlock)); in BeginReadBuildData()
337 rwlockRet = pthread_rwlock_wrlock(&(purgObj->rwlock)); in PurgMemBeginWrite()
358 rwlockRet = pthread_rwlock_unlock(&(purgObj->rwlock)); in PurgMemBeginWrite()
[all...]
/commonlibrary/rust/ylong_runtime/ylong_runtime/benches/bin/
H A Dylong_sync_rwlock_perf.rs19 use ylong_runtime::sync::rwlock::RwLock;
/commonlibrary/rust/ylong_runtime/ylong_runtime/benches/
H A Dylong_tokio_rwlock.rs17 //! - Mainly follow designs of tokio rwlock tests.
35 use ylong_runtime::sync::rwlock::RwLock as YlongRwlock;
42 /// Benchmark test for tokio rwlock.
66 /// Benchmark test for ylong rwlock.
91 /// Benchmark test for tokio rwlock.
115 /// Benchmark test for ylong rwlock.
140 /// Benchmark test for tokio rwlock.
145 /// 3. Write the rwlock
171 /// Benchmark test for ylong rwlock.
176 /// 3. Write the rwlock
[all...]

Completed in 2 milliseconds