Lines Matching refs:mx1
14 pthread_mutex_t *mx1, *mx2; in main() local
16 mx1 = malloc(120 + sizeof(pthread_mutex_t) - sizeof(pthread_mutex_t)); in main()
19 assert(mx1); in main()
22 r = pthread_mutex_init( mx1, NULL ); assert(r==0); in main()
27 r = pthread_mutex_lock( mx1 ); assert(r==0); in main()
30 r = pthread_mutex_unlock( mx1 ); assert(r==0); in main()
36 r = pthread_mutex_lock( mx1 ); assert(r==0); in main()
38 r = pthread_mutex_unlock( mx1 ); assert(r==0); in main()
53 r = pthread_mutex_lock( mx1 ); assert(r==0); /* no error */ in main()
55 r = pthread_mutex_unlock( mx1 ); assert(r==0); in main()
61 r = pthread_mutex_destroy( mx1 ); in main()
64 free( mx1 ); in main()