Lines Matching refs:tg_lock
83 pthread_mutex_t tg_lock; member
273 ret = pthread_mutex_lock(&globals->tg_lock); in worker_thread_iteration_setup()
288 ret = pthread_cond_wait(&globals->tg_cv, &globals->tg_lock); in worker_thread_iteration_setup()
292 ret = pthread_mutex_unlock(&globals->tg_lock); in worker_thread_iteration_setup()
306 ret = pthread_mutex_lock(&globals->tg_lock); in worker_thread_iteration_complete()
317 ret = pthread_cond_wait(&globals->tg_cv, &globals->tg_lock); in worker_thread_iteration_complete()
321 ret = pthread_mutex_unlock(&globals->tg_lock); in worker_thread_iteration_complete()
373 ret = pthread_mutex_lock(&globals->tg_lock); in start_iteration()
378 ret = pthread_cond_wait(&globals->tg_cv, &globals->tg_lock); in start_iteration()
386 ret = pthread_mutex_unlock(&globals->tg_lock); in start_iteration()
398 ret = pthread_mutex_lock(&globals->tg_lock); in finish_iteration()
401 ret = pthread_cond_wait(&globals->tg_cv, &globals->tg_lock); in finish_iteration()
404 ret = pthread_mutex_unlock(&globals->tg_lock); in finish_iteration()
483 ret = pthread_mutex_init(&globals->tg_lock, &mutex_attrs); in init_globals()
563 ret = pthread_mutex_lock(&globals->tg_lock); in join_background_threads()
568 ret = pthread_mutex_unlock(&globals->tg_lock); in join_background_threads()
587 ret = pthread_mutex_destroy(&globals->tg_lock); in cleanup_test()