Home
last modified time | relevance | path

Searched refs:tg_lock (Results 1 – 2 of 2) sorted by relevance

/xnu-8019.80.24/tests/vm/
H A Dfault_throughput.c83 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()
[all …]
/xnu-8019.80.24/osfmk/kern/
H A Dthread_group.c74 static LCK_MTX_DECLARE(tg_lock, &tg_lck_grp);
134 lck_mtx_lock(&tg_lock); in thread_group_init()
136 lck_mtx_unlock(&tg_lock); in thread_group_init()
272 lck_mtx_lock(&tg_lock); in thread_group_resync()
280 lck_mtx_unlock(&tg_lock); in thread_group_resync()
315 lck_mtx_lock(&tg_lock); in thread_group_create_and_retain()
324 lck_mtx_unlock(&tg_lock); in thread_group_create_and_retain()
473 lck_mtx_lock(&tg_lock); in thread_group_find_by_name_and_retain()
481 lck_mtx_unlock(&tg_lock); in thread_group_find_by_name_and_retain()
516 lck_mtx_lock(&tg_lock); in thread_group_find_by_id_and_retain()
[all …]