Lines Matching refs:tg_lock
82 pthread_mutex_t tg_lock; member
272 ret = pthread_mutex_lock(&globals->tg_lock); in worker_thread_iteration_setup()
287 ret = pthread_cond_wait(&globals->tg_cv, &globals->tg_lock); in worker_thread_iteration_setup()
291 ret = pthread_mutex_unlock(&globals->tg_lock); in worker_thread_iteration_setup()
305 ret = pthread_mutex_lock(&globals->tg_lock); in worker_thread_iteration_complete()
316 ret = pthread_cond_wait(&globals->tg_cv, &globals->tg_lock); in worker_thread_iteration_complete()
320 ret = pthread_mutex_unlock(&globals->tg_lock); in worker_thread_iteration_complete()
372 ret = pthread_mutex_lock(&globals->tg_lock); in start_iteration()
377 ret = pthread_cond_wait(&globals->tg_cv, &globals->tg_lock); in start_iteration()
385 ret = pthread_mutex_unlock(&globals->tg_lock); in start_iteration()
397 ret = pthread_mutex_lock(&globals->tg_lock); in finish_iteration()
400 ret = pthread_cond_wait(&globals->tg_cv, &globals->tg_lock); in finish_iteration()
403 ret = pthread_mutex_unlock(&globals->tg_lock); in finish_iteration()
482 ret = pthread_mutex_init(&globals->tg_lock, &mutex_attrs); in init_globals()
562 ret = pthread_mutex_lock(&globals->tg_lock); in join_background_threads()
567 ret = pthread_mutex_unlock(&globals->tg_lock); in join_background_threads()
586 ret = pthread_mutex_destroy(&globals->tg_lock); in cleanup_test()