Lines Matching refs:l
868 pthread_rwlock_t l; in TEST() local
869 ASSERT_EQ(0, pthread_rwlock_init(&l, nullptr)); in TEST()
872 ASSERT_EQ(0, pthread_rwlock_rdlock(&l)); in TEST()
873 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
876 ASSERT_EQ(0, pthread_rwlock_rdlock(&l)); in TEST()
877 ASSERT_EQ(0, pthread_rwlock_rdlock(&l)); in TEST()
878 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
879 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
882 ASSERT_EQ(0, pthread_rwlock_wrlock(&l)); in TEST()
883 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
886 ASSERT_EQ(0, pthread_rwlock_trywrlock(&l)); in TEST()
887 ASSERT_EQ(EBUSY, pthread_rwlock_trywrlock(&l)); in TEST()
888 ASSERT_EQ(EBUSY, pthread_rwlock_tryrdlock(&l)); in TEST()
889 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
892 ASSERT_EQ(0, pthread_rwlock_tryrdlock(&l)); in TEST()
893 ASSERT_EQ(0, pthread_rwlock_tryrdlock(&l)); in TEST()
894 ASSERT_EQ(EBUSY, pthread_rwlock_trywrlock(&l)); in TEST()
895 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
896 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
899 ASSERT_EQ(0, pthread_rwlock_wrlock(&l)); in TEST()
900 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
903 ASSERT_EQ(0, pthread_rwlock_wrlock(&l)); in TEST()
904 ASSERT_EQ(EDEADLK, pthread_rwlock_rdlock(&l)); in TEST()
905 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
908 ASSERT_EQ(0, pthread_rwlock_wrlock(&l)); in TEST()
909 ASSERT_EQ(EDEADLK, pthread_rwlock_wrlock(&l)); in TEST()
910 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
912 ASSERT_EQ(0, pthread_rwlock_destroy(&l)); in TEST()