Lines Matching refs:l
626 pthread_rwlock_t l; in TEST() local
627 ASSERT_EQ(0, pthread_rwlock_init(&l, NULL)); in TEST()
630 ASSERT_EQ(0, pthread_rwlock_rdlock(&l)); in TEST()
631 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
634 ASSERT_EQ(0, pthread_rwlock_rdlock(&l)); in TEST()
635 ASSERT_EQ(0, pthread_rwlock_rdlock(&l)); in TEST()
636 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
637 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
640 ASSERT_EQ(0, pthread_rwlock_wrlock(&l)); in TEST()
641 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
644 ASSERT_EQ(0, pthread_rwlock_trywrlock(&l)); in TEST()
645 ASSERT_EQ(EBUSY, pthread_rwlock_trywrlock(&l)); in TEST()
646 ASSERT_EQ(EBUSY, pthread_rwlock_tryrdlock(&l)); in TEST()
647 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
650 ASSERT_EQ(0, pthread_rwlock_tryrdlock(&l)); in TEST()
651 ASSERT_EQ(0, pthread_rwlock_tryrdlock(&l)); in TEST()
652 ASSERT_EQ(EBUSY, pthread_rwlock_trywrlock(&l)); in TEST()
653 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
654 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
657 ASSERT_EQ(0, pthread_rwlock_wrlock(&l)); in TEST()
658 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
662 ASSERT_EQ(0, pthread_rwlock_wrlock(&l)); in TEST()
663 ASSERT_EQ(EDEADLK, pthread_rwlock_rdlock(&l)); in TEST()
664 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
667 ASSERT_EQ(0, pthread_rwlock_wrlock(&l)); in TEST()
668 ASSERT_EQ(EDEADLK, pthread_rwlock_wrlock(&l)); in TEST()
669 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST()
672 ASSERT_EQ(0, pthread_rwlock_destroy(&l)); in TEST()