Lines Matching refs:attr
31 const pthread_condattr_t *attr);
32 static int test_setclock (pthread_cond_t *condvar, pthread_condattr_t *attr);
33 static int test_setpshared (pthread_cond_t *condvar, pthread_condattr_t *attr);
36 #define SET_SHARED(attr, shared) pthread_condattr_setpshared (attr, shared) argument
42 pthread_condattr_t attr; in main() local
45 if (pthread_condattr_init (&attr) == 0 in main()
47 && test_setclock (&condvar, &attr) == PASS in main()
48 && test_setpshared (&condvar, &attr) == PASS) in main()
57 condvar_reinit (pthread_cond_t *condvar, const pthread_condattr_t *attr) in condvar_reinit() argument
62 && pthread_cond_init (condvar, attr) == 0) in condvar_reinit()
71 test_setclock (pthread_cond_t *condvar, pthread_condattr_t *attr) in test_setclock() argument
75 if (pthread_condattr_setclock (attr, CLOCK_REALTIME) == 0 /* Set clock. */ in test_setclock()
76 && condvar_reinit (condvar, attr) == PASS) in test_setclock()
84 test_setpshared (pthread_cond_t *condvar, pthread_condattr_t *attr) in test_setpshared() argument
88 if (SET_SHARED (attr, PTHREAD_PROCESS_SHARED) == 0 /* Set shared. */ in test_setpshared()
89 && condvar_reinit (condvar, attr) == PASS in test_setpshared()
90 && SET_SHARED (attr, PTHREAD_PROCESS_PRIVATE) == 0 in test_setpshared()
91 && condvar_reinit (condvar, attr) == PASS) in test_setpshared()