Lines Matching refs:lock
33 pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER; variable
45 pthread_mutex_lock (&lock); in thr1()
55 pthread_mutex_unlock (&lock); in thr1()
91 pthread_mutex_lock (&lock); in thr2()
102 pthread_mutex_unlock (&lock); in thr2()
386 pthread_mutex_lock (&lock); in do_test()
388 pthread_cond_wait (&cond, &lock); in do_test()
389 pthread_mutex_unlock (&lock); in do_test()
398 pthread_mutex_lock (&lock); in do_test()
442 pthread_mutex_unlock (&lock); in do_test()
544 pthread_mutex_lock (&lock); in do_test()
546 pthread_cond_wait (&cond, &lock); in do_test()
547 pthread_mutex_unlock (&lock); in do_test()
556 pthread_mutex_lock (&lock); in do_test()
579 pthread_mutex_unlock (&lock); in do_test()