Lines Matching refs:rwlock
33 static int rwlock_reinit (pthread_rwlock_t *rwlock,
35 static int test_setkind_np (pthread_rwlock_t *rwlock,
37 static int test_setpshared (pthread_rwlock_t *rwlock,
43 pthread_rwlock_t rwlock; in main() local
48 && pthread_rwlock_init (&rwlock, NULL) == 0 in main()
49 && test_setkind_np (&rwlock, &attr) == PASS in main()
50 && test_setpshared (&rwlock, &attr) == PASS) in main()
59 rwlock_reinit (pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr) in rwlock_reinit() argument
63 if (pthread_rwlock_destroy (rwlock) == 0 in rwlock_reinit()
64 && pthread_rwlock_init (rwlock, attr) == 0) in rwlock_reinit()
72 test_setkind_np (pthread_rwlock_t *rwlock, pthread_rwlockattr_t *attr) in test_setkind_np() argument
77 && rwlock_reinit (rwlock, attr) == PASS in test_setkind_np()
79 && rwlock_reinit (rwlock, attr) == PASS in test_setkind_np()
81 && rwlock_reinit (rwlock, attr) == PASS) in test_setkind_np()
89 test_setpshared (pthread_rwlock_t *rwlock, pthread_rwlockattr_t *attr) in test_setpshared() argument
94 && rwlock_reinit (rwlock, attr) == PASS in test_setpshared()
96 && rwlock_reinit (rwlock, attr) == PASS) in test_setpshared()