Searched refs:mx2 (Results 1 – 4 of 4) sorted by relevance
/external/valgrind/main/helgrind/tests/ |
D | tc15_laog_lockdel.c | 14 pthread_mutex_t *mx1, *mx2; in main() local 17 mx2 = malloc(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() [all …]
|
D | tc13_laog1.c | 13 pthread_mutex_t mx1, mx2; in main() local 15 r = pthread_mutex_init( &mx2, NULL ); assert(r==0); in main() 18 r = pthread_mutex_lock( &mx2 ); assert(r==0); in main() 21 r = pthread_mutex_unlock( &mx2 ); assert(r==0); in main() 23 r = pthread_mutex_lock( &mx2 ); assert(r==0); /* error */ in main() 27 r = pthread_mutex_unlock( &mx2 ); assert(r==0); in main() 30 r = pthread_mutex_destroy( &mx2 ); in main()
|
D | tc09_bad_unlock.c | 18 pthread_mutex_t mx1, mx2; in nearly_main() local 31 pthread_mutex_init( &mx2, NULL ); in nearly_main() 32 pthread_mutex_lock( &mx2 ); in nearly_main() 35 pthread_create( &child, NULL, child_fn, (void*)&mx2 ); in nearly_main()
|
D | tc20_verifywrap.c | 44 pthread_mutex_t mx, mx2, mx3, mx4; in main() local 100 r= pthread_mutex_init( &mx2, NULL ); assert(!r); in main() 101 r= pthread_mutex_lock( &mx2 ); assert(!r); in main() 102 r= pthread_mutex_destroy( &mx2 ); assert(r); in main()
|