Searched refs:rwlock (Results 1 - 3 of 3) sorted by relevance
/bionic/libc/bionic/ |
H A D | pthread_rwlock.cpp | 62 // 1 rwlock_kind have rwlock preference like PTHREAD_RWLOCK_PREFER_READER_NP. 63 // 0 process_shared set to 1 if the rwlock is shared between processes. 137 // A rwlock state is implemented as a 32-bit integer which has following rules: 165 // When a reader thread plans to suspend on the rwlock, it will add STATE_HAVE_PENDING_READERS_FLAG 227 pthread_rwlock_internal_t* rwlock = __get_internal_rwlock(rwlock_interface); local 229 memset(rwlock, 0, sizeof(pthread_rwlock_internal_t)); 232 rwlock->pshared = __rwlockattr_getpshared(attr); 236 rwlock->writer_nonrecursive_preferred = false; 239 rwlock->writer_nonrecursive_preferred = true; 249 atomic_init(&rwlock 255 pthread_rwlock_internal_t* rwlock = __get_internal_rwlock(rwlock_interface); local 272 __pthread_rwlock_tryrdlock(pthread_rwlock_internal_t* rwlock) argument 289 __pthread_rwlock_timedrdlock(pthread_rwlock_internal_t* rwlock, const timespec* abs_timeout_or_null) argument 354 __pthread_rwlock_trywrlock(pthread_rwlock_internal_t* rwlock) argument 368 __pthread_rwlock_timedwrlock(pthread_rwlock_internal_t* rwlock, const timespec* abs_timeout_or_null) argument 425 pthread_rwlock_internal_t* rwlock = __get_internal_rwlock(rwlock_interface); local 434 pthread_rwlock_internal_t* rwlock = __get_internal_rwlock(rwlock_interface); local 444 pthread_rwlock_internal_t* rwlock = __get_internal_rwlock(rwlock_interface); local 453 pthread_rwlock_internal_t* rwlock = __get_internal_rwlock(rwlock_interface); local 463 pthread_rwlock_internal_t* rwlock = __get_internal_rwlock(rwlock_interface); local [all...] |
/bionic/libc/include/ |
H A D | pthread.h | 208 int pthread_rwlock_unlock(pthread_rwlock_t *rwlock) __nonnull((1));
|
/bionic/tests/ |
H A D | pthread_test.cpp | 1527 pthread_rwlock_t* rwlock = reinterpret_cast<pthread_rwlock_t*>( local 1529 ASSERT_EQ(0, pthread_rwlock_init(rwlock, NULL)); 1530 ASSERT_EQ(0, pthread_rwlock_rdlock(rwlock)); 1531 ASSERT_EQ(0, pthread_rwlock_unlock(rwlock)); 1532 ASSERT_EQ(0, pthread_rwlock_wrlock(rwlock)); 1533 ASSERT_EQ(0, pthread_rwlock_unlock(rwlock)); 1534 ASSERT_EQ(0, pthread_rwlock_destroy(rwlock));
|
Completed in 172 milliseconds