Lines Matching refs:mx2
14 pthread_mutex_t *mx1, *mx2;
17 mx2 = malloc(sizeof(pthread_mutex_t));
20 assert(mx2);
23 r = pthread_mutex_init( mx2, NULL ); assert(r==0);
28 r = pthread_mutex_lock( mx2 ); assert(r==0);
31 r = pthread_mutex_unlock( mx2 ); assert(r==0);
35 r = pthread_mutex_lock( mx2 ); assert(r==0); /* error */
39 r = pthread_mutex_unlock( mx2 ); assert(r==0);
46 pthread_mutex_destroy( mx2 );
50 r = pthread_mutex_init( mx2, NULL ); assert(r==0);
52 r = pthread_mutex_lock( mx2 ); assert(r==0);
56 r = pthread_mutex_unlock( mx2 ); assert(r==0);
62 r = pthread_mutex_destroy( mx2 );
65 free( mx2 );
73 "pthread_mutex_destroy( mx2 );" at line 46 is commented out. In
74 other words, laog somehow forgets about mx2 so that 2->1 lock
76 preceding "pthread_mutex_destroy( mx2 );" is not observed. I don't