Home
last modified time | relevance | path

Searched defs:rwlock (Results 1 – 25 of 134) sorted by relevance

123456

/aosp_15_r20/external/cronet/third_party/apache-portable-runtime/src/locks/unix/
H A Dthread_rwlock.c28 apr_thread_rwlock_t *rwlock = (apr_thread_rwlock_t *)data; in thread_rwlock_cleanup() local
40 APR_DECLARE(apr_status_t) apr_thread_rwlock_create(apr_thread_rwlock_t **rwlock, in apr_thread_rwlock_create()
64 APR_DECLARE(apr_status_t) apr_thread_rwlock_rdlock(apr_thread_rwlock_t *rwlock) in apr_thread_rwlock_rdlock()
77 APR_DECLARE(apr_status_t) apr_thread_rwlock_tryrdlock(apr_thread_rwlock_t *rwlock) in apr_thread_rwlock_tryrdlock()
93 APR_DECLARE(apr_status_t) apr_thread_rwlock_wrlock(apr_thread_rwlock_t *rwlock) in apr_thread_rwlock_wrlock()
106 APR_DECLARE(apr_status_t) apr_thread_rwlock_trywrlock(apr_thread_rwlock_t *rwlock) in apr_thread_rwlock_trywrlock()
122 APR_DECLARE(apr_status_t) apr_thread_rwlock_unlock(apr_thread_rwlock_t *rwlock) in apr_thread_rwlock_unlock()
135 APR_DECLARE(apr_status_t) apr_thread_rwlock_destroy(apr_thread_rwlock_t *rwlock) in apr_thread_rwlock_destroy()
142 APR_DECLARE(apr_status_t) apr_thread_rwlock_create(apr_thread_rwlock_t **rwlock, in apr_thread_rwlock_create()
148 APR_DECLARE(apr_status_t) apr_thread_rwlock_rdlock(apr_thread_rwlock_t *rwlock) in apr_thread_rwlock_rdlock()
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/tokio/tests/
Dsync_rwlock.rs22 let rwlock = RwLock::new(42); in into_inner() localVariable
29 let rwlock = RwLock::new(100); in read_shared() localVariable
40 let rwlock = RwLock::new(100); in write_shared_pending() localVariable
51 let rwlock = RwLock::new(100); in read_exclusive_pending() localVariable
63 let rwlock = RwLock::with_max_readers(100, 1024); in exhaust_reading() localVariable
84 let rwlock = RwLock::new(100); in write_exclusive_pending() localVariable
95 let rwlock = RwLock::new(100); in write_shared_drop() localVariable
110 let rwlock = RwLock::new(100); in write_read_shared_pending() localVariable
128 let rwlock = RwLock::new(100); in write_read_shared_drop_pending() localVariable
146 let rwlock = RwLock::new(100); in read_uncontested() localVariable
[all …]
/aosp_15_r20/external/llvm-libc/test/integration/src/pthread/
H A Dpthread_rwlock_test.cpp48 namespace rwlock { namespace
59 pthread_rwlock_t rwlock = PTHREAD_RWLOCK_INITIALIZER; in smoke_test() local
76 pthread_rwlock_t rwlock = PTHREAD_RWLOCK_INITIALIZER; in deadlock_detection_test() local
86 pthread_rwlock_t rwlock = PTHREAD_RWLOCK_INITIALIZER; in try_lock_test() local
103 pthread_rwlock_t rwlock = PTHREAD_RWLOCK_INITIALIZER; in destroy_before_unlock_test() local
133 pthread_rwlock_t rwlock = PTHREAD_RWLOCK_INITIALIZER; in high_reader_count_test() local
148 pthread_rwlock_t *rwlock = in high_reader_count_test() local
166 pthread_rwlock_t rwlock = PTHREAD_RWLOCK_INITIALIZER; in unusual_timespec_test() local
207 pthread_rwlock_t rwlock = PTHREAD_RWLOCK_INITIALIZER; in timedlock_with_deadlock_test() local
247 pthread_rwlock_t rwlock{}; in attributed_initialization_test() local
[all …]
/aosp_15_r20/external/cronet/third_party/apache-portable-runtime/src/locks/win32/
H A Dthread_rwlock.c26 apr_thread_rwlock_t *rwlock = data; in thread_rwlock_cleanup() local
37 APR_DECLARE(apr_status_t)apr_thread_rwlock_create(apr_thread_rwlock_t **rwlock, in apr_thread_rwlock_create()
62 static apr_status_t apr_thread_rwlock_rdlock_core(apr_thread_rwlock_t *rwlock, in apr_thread_rwlock_rdlock_core()
85 APR_DECLARE(apr_status_t) apr_thread_rwlock_rdlock(apr_thread_rwlock_t *rwlock) in apr_thread_rwlock_rdlock()
91 apr_thread_rwlock_tryrdlock(apr_thread_rwlock_t *rwlock) in apr_thread_rwlock_tryrdlock()
97 apr_thread_rwlock_wrlock_core(apr_thread_rwlock_t *rwlock, DWORD milliseconds) in apr_thread_rwlock_wrlock_core()
127 APR_DECLARE(apr_status_t) apr_thread_rwlock_wrlock(apr_thread_rwlock_t *rwlock) in apr_thread_rwlock_wrlock()
132 APR_DECLARE(apr_status_t)apr_thread_rwlock_trywrlock(apr_thread_rwlock_t *rwlock) in apr_thread_rwlock_trywrlock()
137 APR_DECLARE(apr_status_t) apr_thread_rwlock_unlock(apr_thread_rwlock_t *rwlock) in apr_thread_rwlock_unlock()
160 APR_DECLARE(apr_status_t) apr_thread_rwlock_destroy(apr_thread_rwlock_t *rwlock) in apr_thread_rwlock_destroy()
/aosp_15_r20/external/libcups/cups/
H A Dthread.c110 _cupsRWInit(_cups_rwlock_t *rwlock) /* I - Reader/writer lock */ in _cupsRWInit()
121 _cupsRWLockRead(_cups_rwlock_t *rwlock) /* I - Reader/writer lock */ in _cupsRWLockRead()
132 _cupsRWLockWrite(_cups_rwlock_t *rwlock)/* I - Reader/writer lock */ in _cupsRWLockWrite()
143 _cupsRWUnlock(_cups_rwlock_t *rwlock) /* I - Reader/writer lock */ in _cupsRWUnlock()
297 _cupsRWInit(_cups_rwlock_t *rwlock) /* I - Reader/writer lock */ in _cupsRWInit()
308 _cupsRWLockRead(_cups_rwlock_t *rwlock) /* I - Reader/writer lock */ in _cupsRWLockRead()
319 _cupsRWLockWrite(_cups_rwlock_t *rwlock)/* I - Reader/writer lock */ in _cupsRWLockWrite()
330 _cupsRWUnlock(_cups_rwlock_t *rwlock) /* I - Reader/writer lock */ in _cupsRWUnlock()
460 _cupsRWInit(_cups_rwlock_t *rwlock) /* I - Reader/writer lock */ in _cupsRWInit()
471 _cupsRWLockRead(_cups_rwlock_t *rwlock) /* I - Reader/writer lock */ in _cupsRWLockRead()
[all …]
/aosp_15_r20/external/cronet/third_party/apache-portable-runtime/src/locks/netware/
H A Dthread_rwlock.c26 apr_thread_rwlock_t *rwlock = (apr_thread_rwlock_t *)data; in thread_rwlock_cleanup() local
32 APR_DECLARE(apr_status_t) apr_thread_rwlock_create(apr_thread_rwlock_t **rwlock, in apr_thread_rwlock_create()
59 APR_DECLARE(apr_status_t) apr_thread_rwlock_rdlock(apr_thread_rwlock_t *rwlock) in apr_thread_rwlock_rdlock()
65 APR_DECLARE(apr_status_t) apr_thread_rwlock_tryrdlock(apr_thread_rwlock_t *rwlock) in apr_thread_rwlock_tryrdlock()
72 APR_DECLARE(apr_status_t) apr_thread_rwlock_wrlock(apr_thread_rwlock_t *rwlock) in apr_thread_rwlock_wrlock()
78 APR_DECLARE(apr_status_t) apr_thread_rwlock_trywrlock(apr_thread_rwlock_t *rwlock) in apr_thread_rwlock_trywrlock()
85 APR_DECLARE(apr_status_t) apr_thread_rwlock_unlock(apr_thread_rwlock_t *rwlock) in apr_thread_rwlock_unlock()
91 APR_DECLARE(apr_status_t) apr_thread_rwlock_destroy(apr_thread_rwlock_t *rwlock) in apr_thread_rwlock_destroy()
/aosp_15_r20/bionic/libc/bionic/
H A Dpthread_rwlock.cpp228 pthread_rwlock_internal_t* rwlock = __get_internal_rwlock(rwlock_interface); in pthread_rwlock_init() local
256 pthread_rwlock_internal_t* rwlock = __get_internal_rwlock(rwlock_interface); in pthread_rwlock_destroy() local
273 static inline __always_inline int __pthread_rwlock_tryrdlock(pthread_rwlock_internal_t* rwlock) { in __pthread_rwlock_tryrdlock()
290 static int __pthread_rwlock_timedrdlock(pthread_rwlock_internal_t* rwlock, bool use_realtime_clock, in __pthread_rwlock_timedrdlock()
348 static inline __always_inline int __pthread_rwlock_trywrlock(pthread_rwlock_internal_t* rwlock) { in __pthread_rwlock_trywrlock()
362 static int __pthread_rwlock_timedwrlock(pthread_rwlock_internal_t* rwlock, bool use_realtime_clock, in __pthread_rwlock_timedwrlock()
412 pthread_rwlock_internal_t* rwlock = __get_internal_rwlock(rwlock_interface); in pthread_rwlock_rdlock() local
421 pthread_rwlock_internal_t* rwlock = __get_internal_rwlock(rwlock_interface); in pthread_rwlock_timedrdlock() local
428 pthread_rwlock_internal_t* rwlock = __get_internal_rwlock(rwlock_interface); in pthread_rwlock_timedrdlock_monotonic_np() local
450 pthread_rwlock_internal_t* rwlock = __get_internal_rwlock(rwlock_interface); in pthread_rwlock_wrlock() local
[all …]
/aosp_15_r20/external/cronet/third_party/apache-portable-runtime/src/locks/os2/
H A Dthread_rwlock.c27 apr_thread_rwlock_t *rwlock = therwlock; in thread_rwlock_cleanup() local
33 APR_DECLARE(apr_status_t) apr_thread_rwlock_create(apr_thread_rwlock_t **rwlock, in apr_thread_rwlock_create()
64 APR_DECLARE(apr_status_t) apr_thread_rwlock_rdlock(apr_thread_rwlock_t *rwlock) in apr_thread_rwlock_rdlock()
85 APR_DECLARE(apr_status_t) apr_thread_rwlock_tryrdlock(apr_thread_rwlock_t *rwlock) in apr_thread_rwlock_tryrdlock()
103 APR_DECLARE(apr_status_t) apr_thread_rwlock_wrlock(apr_thread_rwlock_t *rwlock) in apr_thread_rwlock_wrlock()
128 APR_DECLARE(apr_status_t) apr_thread_rwlock_trywrlock(apr_thread_rwlock_t *rwlock) in apr_thread_rwlock_trywrlock()
152 APR_DECLARE(apr_status_t) apr_thread_rwlock_unlock(apr_thread_rwlock_t *rwlock) in apr_thread_rwlock_unlock()
179 APR_DECLARE(apr_status_t) apr_thread_rwlock_destroy(apr_thread_rwlock_t *rwlock) in apr_thread_rwlock_destroy()
/aosp_15_r20/external/cronet/third_party/apache-portable-runtime/src/locks/beos/
H A Dthread_rwlock.c53 APR_DECLARE(apr_status_t) apr_thread_rwlock_create(apr_thread_rwlock_t **rwlock, in apr_thread_rwlock_create()
83 APR_DECLARE(apr_status_t) apr_thread_rwlock_rdlock(apr_thread_rwlock_t *rwlock) in apr_thread_rwlock_rdlock()
103 APR_DECLARE(apr_status_t) apr_thread_rwlock_tryrdlock(apr_thread_rwlock_t *rwlock) in apr_thread_rwlock_tryrdlock()
108 APR_DECLARE(apr_status_t) apr_thread_rwlock_wrlock(apr_thread_rwlock_t *rwlock) in apr_thread_rwlock_wrlock()
139 APR_DECLARE(apr_status_t) apr_thread_rwlock_trywrlock(apr_thread_rwlock_t *rwlock) in apr_thread_rwlock_trywrlock()
144 APR_DECLARE(apr_status_t) apr_thread_rwlock_unlock(apr_thread_rwlock_t *rwlock) in apr_thread_rwlock_unlock()
179 APR_DECLARE(apr_status_t) apr_thread_rwlock_destroy(apr_thread_rwlock_t *rwlock) in apr_thread_rwlock_destroy()
/aosp_15_r20/external/mesa3d/src/util/
H A Drwlock.c16 int u_rwlock_init(struct u_rwlock *rwlock) in u_rwlock_init()
26 int u_rwlock_destroy(struct u_rwlock *rwlock) in u_rwlock_destroy()
35 int u_rwlock_rdlock(struct u_rwlock *rwlock) in u_rwlock_rdlock()
45 int u_rwlock_rdunlock(struct u_rwlock *rwlock) in u_rwlock_rdunlock()
55 int u_rwlock_wrlock(struct u_rwlock *rwlock) in u_rwlock_wrlock()
65 int u_rwlock_wrunlock(struct u_rwlock *rwlock) in u_rwlock_wrunlock()
/aosp_15_r20/external/llvm/lib/Support/
H A DRWMutex.cpp50 pthread_rwlock_t* rwlock = in RWMutexImpl() local
70 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in ~RWMutexImpl() local
79 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in reader_acquire() local
89 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in reader_release() local
99 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in writer_acquire() local
109 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in writer_release() local
/aosp_15_r20/external/swiftshader/third_party/llvm-16.0/llvm/lib/Support/
H A DRWMutex.cpp44 pthread_rwlock_t* rwlock = in RWMutexImpl() local
64 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in ~RWMutexImpl() local
73 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in lock_shared() local
83 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in unlock_shared() local
93 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in lock() local
103 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in unlock() local
/aosp_15_r20/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
H A DRWMutex.cpp44 pthread_rwlock_t* rwlock = in RWMutexImpl() local
64 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in ~RWMutexImpl() local
73 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in lock_shared() local
83 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in unlock_shared() local
93 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in lock() local
103 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in unlock() local
/aosp_15_r20/external/rust/android-crates-io/crates/lock_api/src/
Drwlock.rs1224 rwlock: &'a RwLock<R, T>, field
1232 pub fn rwlock(s: &Self) -> &'a RwLock<R, T> { in rwlock() method
1402 rwlock: Arc<RwLock<R, T>>, field
1409 pub fn rwlock(s: &Self) -> &Arc<RwLock<R, T>> { in rwlock() method
1514 rwlock: &'a RwLock<R, T>, field
1522 pub fn rwlock(s: &Self) -> &'a RwLock<R, T> { in rwlock() method
1606 let rwlock = s.rwlock; in downgrade() localVariable
1627 let rwlock = s.rwlock; in downgrade_to_upgradable() localVariable
1740 rwlock: Arc<RwLock<R, T>>, field
1747 pub fn rwlock(s: &Self) -> &Arc<RwLock<R, T>> { in rwlock() method
[all …]
/aosp_15_r20/external/dng_sdk/source/
H A Ddng_pthread.cpp861 int dng_pthread_rwlock_init(dng_pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attrs) in dng_pthread_rwlock_init()
876 int dng_pthread_rwlock_destroy(dng_pthread_rwlock_t *rwlock) in dng_pthread_rwlock_destroy()
902 int dng_pthread_rwlock_rdlock(dng_pthread_rwlock_t *rwlock) in dng_pthread_rwlock_rdlock()
949 int dng_pthread_rwlock_tryrdlock(dng_pthread_rwlock_t *rwlock) in dng_pthread_rwlock_tryrdlock()
968 int dng_pthread_rwlock_trywrlock(dng_pthread_rwlock_t *rwlock) in dng_pthread_rwlock_trywrlock()
989 int dng_pthread_rwlock_unlock(dng_pthread_rwlock_t *rwlock) in dng_pthread_rwlock_unlock()
1029 int dng_pthread_rwlock_wrlock(dng_pthread_rwlock_t *rwlock) in dng_pthread_rwlock_wrlock()
/aosp_15_r20/external/rust/android-crates-io/crates/spin/src/
Drwlock.rs512 pub fn upgrade(mut self) -> RwLockWriteGuard<'rwlock, T, R> { in upgrade()
526 fn try_upgrade_internal(self, strong: bool) -> Result<RwLockWriteGuard<'rwlock, T, R>, Self> { in try_upgrade_internal()
565 pub fn try_upgrade(self) -> Result<RwLockWriteGuard<'rwlock, T, R>, Self> { in try_upgrade()
583 pub fn downgrade(self) -> RwLockReadGuard<'rwlock, T> { in downgrade()
643 pub fn downgrade(self) -> RwLockReadGuard<'rwlock, T> { in downgrade()
670 pub fn downgrade_to_upgradeable(self) -> RwLockUpgradableGuard<'rwlock, T, R> { in downgrade_to_upgradeable()
/aosp_15_r20/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/
H A D5-1.c52 pthread_rwlock_t rwlock; in fn_wr_1() local
97 pthread_rwlock_t rwlock; in fn_wr_2() local
/aosp_15_r20/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/
H A D5-1.c45 pthread_rwlock_t rwlock; in fn_rd_1() local
90 pthread_rwlock_t rwlock; in fn_rd_2() local
/aosp_15_r20/prebuilts/vndk/v34/arm/include/system/core/libutils/include/utils/
DRWLock.h62 inline explicit AutoRLock(RWLock& rwlock) : mLock(rwlock) { mLock.readLock(); } in AutoRLock()
70 inline explicit AutoWLock(RWLock& rwlock) : mLock(rwlock) { mLock.writeLock(); } in AutoWLock()
/aosp_15_r20/prebuilts/vndk/v30/x86/include/system/core/libutils/include/utils/
DRWLock.h62 inline explicit AutoRLock(RWLock& rwlock) : mLock(rwlock) { mLock.readLock(); } in AutoRLock()
70 inline explicit AutoWLock(RWLock& rwlock) : mLock(rwlock) { mLock.writeLock(); } in AutoWLock()
/aosp_15_r20/prebuilts/vndk/v34/x86_64/include/system/core/libutils/include/utils/
DRWLock.h62 inline explicit AutoRLock(RWLock& rwlock) : mLock(rwlock) { mLock.readLock(); } in AutoRLock()
70 inline explicit AutoWLock(RWLock& rwlock) : mLock(rwlock) { mLock.writeLock(); } in AutoWLock()
/aosp_15_r20/prebuilts/vndk/v31/arm/include/system/core/libutils/include/utils/
DRWLock.h62 inline explicit AutoRLock(RWLock& rwlock) : mLock(rwlock) { mLock.readLock(); } in AutoRLock()
70 inline explicit AutoWLock(RWLock& rwlock) : mLock(rwlock) { mLock.writeLock(); } in AutoWLock()
/aosp_15_r20/prebuilts/vndk/v31/arm64/include/system/core/libutils/include/utils/
DRWLock.h62 inline explicit AutoRLock(RWLock& rwlock) : mLock(rwlock) { mLock.readLock(); } in AutoRLock()
70 inline explicit AutoWLock(RWLock& rwlock) : mLock(rwlock) { mLock.writeLock(); } in AutoWLock()
/aosp_15_r20/prebuilts/vndk/v34/x86/include/system/core/libutils/include/utils/
DRWLock.h62 inline explicit AutoRLock(RWLock& rwlock) : mLock(rwlock) { mLock.readLock(); } in AutoRLock()
70 inline explicit AutoWLock(RWLock& rwlock) : mLock(rwlock) { mLock.writeLock(); } in AutoWLock()
/aosp_15_r20/prebuilts/vndk/v34/arm64/include/system/core/libutils/include/utils/
DRWLock.h62 inline explicit AutoRLock(RWLock& rwlock) : mLock(rwlock) { mLock.readLock(); } in AutoRLock()
70 inline explicit AutoWLock(RWLock& rwlock) : mLock(rwlock) { mLock.writeLock(); } in AutoWLock()

123456