HomeSort by relevance Sort by last modified time
    Searched refs:mx1 (Results 1 - 4 of 4) sorted by null

  /external/valgrind/main/helgrind/tests/
tc10_rec_lock.c 16 pthread_mutex_t mx1; local
24 r = pthread_mutex_init( &mx1, &attr );
28 r = pthread_mutex_lock( &mx1 ); assert(r == 0);
30 r = pthread_mutex_lock( &mx1 ); assert(r == 0);
32 r = pthread_mutex_lock( &mx1 ); assert(r == 0);
35 r = pthread_mutex_unlock( &mx1 ); assert(r == 0);
37 r = pthread_mutex_unlock( &mx1 ); assert(r == 0);
39 r = pthread_mutex_unlock( &mx1 ); assert(r == 0);
42 r = pthread_mutex_unlock( &mx1 ); /* FAILS: assert(r == 0); */
tc15_laog_lockdel.c 14 pthread_mutex_t *mx1, *mx2; local
16 mx1 = malloc(sizeof(pthread_mutex_t));
19 assert(mx1);
22 r = pthread_mutex_init( mx1, NULL ); assert(r==0);
27 r = pthread_mutex_lock( mx1 ); assert(r==0);
30 r = pthread_mutex_unlock( mx1 ); assert(r==0);
36 r = pthread_mutex_lock( mx1 ); assert(r==0);
38 r = pthread_mutex_unlock( mx1 ); assert(r==0);
53 r = pthread_mutex_lock( mx1 ); assert(r==0); /* no error */
55 r = pthread_mutex_unlock( mx1 ); assert(r==0)
    [all...]
tc09_bad_unlock.c 18 pthread_mutex_t mx1, mx2; local
23 pthread_mutex_init( &mx1, NULL );
24 pthread_mutex_lock( &mx1 );
25 pthread_mutex_unlock( &mx1 );
27 pthread_mutex_unlock( &mx1 ); /* ERROR */
tc13_laog1.c 13 pthread_mutex_t mx1, mx2; local
14 r = pthread_mutex_init( &mx1, NULL ); assert(r==0);
17 r = pthread_mutex_lock( &mx1 ); assert(r==0);
20 r = pthread_mutex_unlock( &mx1 ); assert(r==0);
24 r = pthread_mutex_lock( &mx1 ); assert(r==0);
26 r = pthread_mutex_unlock( &mx1 ); assert(r==0);
29 r = pthread_mutex_destroy( &mx1 );

Completed in 60 milliseconds