Lines Matching refs:l

867   pthread_rwlock_t l;  in TEST()  local
868 ASSERT_EQ(0, pthread_rwlock_init(&l, nullptr)); in TEST()
871 ASSERT_EQ(0, pthread_rwlock_rdlock(&l)); in TEST()
872 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
875 ASSERT_EQ(0, pthread_rwlock_rdlock(&l)); in TEST()
876 ASSERT_EQ(0, pthread_rwlock_rdlock(&l)); in TEST()
877 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
878 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
881 ASSERT_EQ(0, pthread_rwlock_wrlock(&l)); in TEST()
882 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
885 ASSERT_EQ(0, pthread_rwlock_trywrlock(&l)); in TEST()
886 ASSERT_EQ(EBUSY, pthread_rwlock_trywrlock(&l)); in TEST()
887 ASSERT_EQ(EBUSY, pthread_rwlock_tryrdlock(&l)); in TEST()
888 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
891 ASSERT_EQ(0, pthread_rwlock_tryrdlock(&l)); in TEST()
892 ASSERT_EQ(0, pthread_rwlock_tryrdlock(&l)); in TEST()
893 ASSERT_EQ(EBUSY, pthread_rwlock_trywrlock(&l)); in TEST()
894 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
895 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
898 ASSERT_EQ(0, pthread_rwlock_wrlock(&l)); in TEST()
899 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
902 ASSERT_EQ(0, pthread_rwlock_wrlock(&l)); in TEST()
903 ASSERT_EQ(EDEADLK, pthread_rwlock_rdlock(&l)); in TEST()
904 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
907 ASSERT_EQ(0, pthread_rwlock_wrlock(&l)); in TEST()
908 ASSERT_EQ(EDEADLK, pthread_rwlock_wrlock(&l)); in TEST()
909 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
911 ASSERT_EQ(0, pthread_rwlock_destroy(&l)); in TEST()