Searched refs:mx1 (Results 1 – 5 of 5) sorted by relevance
14 pthread_mutex_t *mx1, *mx2; in main() local16 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()[all …]
16 pthread_mutex_t mx1; in nearly_main() local24 r = pthread_mutex_init( &mx1, &attr ); in nearly_main()28 r = pthread_mutex_lock( &mx1 ); assert(r == 0); in nearly_main()30 r = pthread_mutex_lock( &mx1 ); assert(r == 0); in nearly_main()32 r = pthread_mutex_lock( &mx1 ); assert(r == 0); in nearly_main()35 r = pthread_mutex_unlock( &mx1 ); assert(r == 0); in nearly_main()37 r = pthread_mutex_unlock( &mx1 ); assert(r == 0); in nearly_main()39 r = pthread_mutex_unlock( &mx1 ); assert(r == 0); in nearly_main()42 r = pthread_mutex_unlock( &mx1 ); /* FAILS: assert(r == 0); */ in nearly_main()
13 pthread_mutex_t mx1, mx2; in main() local14 r = pthread_mutex_init( &mx1, NULL ); assert(r==0); in main()17 r = pthread_mutex_lock( &mx1 ); assert(r==0); in main()20 r = pthread_mutex_unlock( &mx1 ); assert(r==0); in main()24 r = pthread_mutex_lock( &mx1 ); assert(r==0); in main()26 r = pthread_mutex_unlock( &mx1 ); assert(r==0); in main()29 r = pthread_mutex_destroy( &mx1 ); in main()
18 pthread_mutex_t mx1, mx2; in nearly_main() local23 pthread_mutex_init( &mx1, NULL ); in nearly_main()24 pthread_mutex_lock( &mx1 ); in nearly_main()25 pthread_mutex_unlock( &mx1 ); in nearly_main()27 pthread_mutex_unlock( &mx1 ); /* ERROR */ in nearly_main()
472 * Stepan Koltsov <yozh@mx1.ru>, tracepath/tracepth6 segfaulted when