Lines Matching refs:lock
29 static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER; variable
71 pthread_mutex_lock(&lock); in thread_top_exec()
73 if (!pthread_mutex_trylock(&lock)) { in thread_top_exec()
78 pthread_mutex_unlock(&lock); in thread_top_exec()
82 pthread_mutex_lock(&lock); in thread_top_exec()
90 zassert_equal(0, pthread_cond_wait(&cvar0, &lock), ""); in thread_top_exec()
92 pthread_mutex_unlock(&lock); in thread_top_exec()
94 pthread_mutex_lock(&lock); in thread_top_exec()
106 pthread_mutex_unlock(&lock); in thread_top_exec()
114 pthread_mutex_unlock(&lock); in thread_top_exec()
122 pthread_mutex_lock(&lock); in thread_top_exec()
125 pthread_cond_wait(&cvar1, &lock); in thread_top_exec()
126 pthread_mutex_unlock(&lock); in thread_top_exec()
325 pthread_mutex_lock(&lock); in ZTEST()
327 pthread_mutex_unlock(&lock); in ZTEST()