2 * Common code for the pthread-init-*.c tests.
4 * Origin: Kaveh Ghazi (ghazi@caip.rutgers.edu) 9/27/2006.
10 #define UNUSED __attribute__ ((__unused__))
14 #ifdef PTHREAD_MUTEX_INITIALIZER
15 pthread_mutex_t pmutex UNUSED
= PTHREAD_MUTEX_INITIALIZER
;
17 #ifdef PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
18 pthread_mutex_t pmutex_rc UNUSED
= PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
;
20 #ifdef PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP
21 pthread_mutex_t pmutex_ec UNUSED
= PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP
;
23 #ifdef PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP
24 pthread_mutex_t pmutex_ad UNUSED
= PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP
;
26 #ifdef PTHREAD_COND_INITIALIZER
27 pthread_cond_t pcond UNUSED
= PTHREAD_COND_INITIALIZER
;
29 #ifdef PTHREAD_RWLOCK_INITIALIZER
30 pthread_rwlock_t prwlock UNUSED
= PTHREAD_RWLOCK_INITIALIZER
;
32 #ifdef PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP
33 pthread_rwlock_t prwlock_nrc UNUSED
34 = PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP
;
36 #ifdef PTHREAD_ONCE_INIT
37 pthread_once_t ponce UNUSED
= PTHREAD_ONCE_INIT
;