Home
last modified time | relevance | path

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

/xnu-11215.1.10/tests/vm/
H A Dfault_throughput.c82 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()
[all …]
/xnu-11215.1.10/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()
241 lck_mtx_lock(&tg_lock); in thread_group_resync()
249 lck_mtx_unlock(&tg_lock); in thread_group_resync()
276 lck_mtx_lock(&tg_lock); in thread_group_create_and_retain()
285 lck_mtx_unlock(&tg_lock); in thread_group_create_and_retain()
478 lck_mtx_lock(&tg_lock); in thread_group_find_by_name_and_retain()
486 lck_mtx_unlock(&tg_lock); in thread_group_find_by_name_and_retain()
521 lck_mtx_lock(&tg_lock); in thread_group_find_by_id_and_retain()
[all …]