Lines Matching refs:mx2
14 pthread_mutex_t *mx1, *mx2; in main() local
17 mx2 = malloc(120 + sizeof(pthread_mutex_t) - sizeof(pthread_mutex_t)); in main()
20 assert(mx2); in main()
23 r = pthread_mutex_init( mx2, NULL ); assert(r==0); in main()
28 r = pthread_mutex_lock( mx2 ); assert(r==0); in main()
31 r = pthread_mutex_unlock( mx2 ); assert(r==0); in main()
35 r = pthread_mutex_lock( mx2 ); assert(r==0); /* error */ in main()
39 r = pthread_mutex_unlock( mx2 ); assert(r==0); in main()
46 pthread_mutex_destroy( mx2 ); in main()
50 r = pthread_mutex_init( mx2, NULL ); assert(r==0); in main()
52 r = pthread_mutex_lock( mx2 ); assert(r==0); in main()
56 r = pthread_mutex_unlock( mx2 ); assert(r==0); in main()
62 r = pthread_mutex_destroy( mx2 ); in main()
65 free( mx2 ); in main()