Home
last modified time | relevance | path

Searched refs:mx2 (Results 1 – 4 of 4) sorted by relevance

/external/valgrind/main/helgrind/tests/
Dtc15_laog_lockdel.c14 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 …]
Dtc13_laog1.c13 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()
Dtc09_bad_unlock.c18 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()
Dtc20_verifywrap.c44 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()