Lines Matching refs:mtx

118 	if (malloc_mutex_trylock(tsdn, &decay->mtx)) {
195 malloc_mutex_unlock(tsdn, &decay->mtx);
232 ret = pthread_cond_wait(&info->cond, &info->mtx.lock);
255 ret = pthread_cond_timedwait(&info->cond, &info->mtx.lock, &ts);
274 malloc_mutex_unlock(tsdn, &info->mtx);
278 malloc_mutex_lock(tsdn, &info->mtx);
321 malloc_mutex_lock(tsd_tsdn(tsd), &info->mtx);
331 malloc_mutex_unlock(tsd_tsdn(tsd), &info->mtx);
392 malloc_mutex_unlock(tsdn, &background_thread_info[0].mtx);
398 malloc_mutex_lock(tsdn, &info->mtx);
404 malloc_mutex_unlock(tsdn, &info->mtx);
428 malloc_mutex_lock(tsdn, &background_thread_info[0].mtx);
467 malloc_mutex_lock(tsd_tsdn(tsd), &info->mtx);
475 malloc_mutex_unlock(tsd_tsdn(tsd), &info->mtx);
486 malloc_mutex_lock(tsd_tsdn(tsd), &info->mtx);
502 malloc_mutex_unlock(tsd_tsdn(tsd), &info->mtx);
547 malloc_mutex_lock(tsd_tsdn(tsd), &info->mtx);
553 malloc_mutex_unlock(tsd_tsdn(tsd), &info->mtx);
560 malloc_mutex_lock(tsd_tsdn(tsd), &t0->mtx);
563 malloc_mutex_unlock(tsd_tsdn(tsd), &t0->mtx);
580 malloc_mutex_lock(tsd_tsdn(tsd), &info->mtx);
583 malloc_mutex_unlock(tsd_tsdn(tsd), &info->mtx);
627 malloc_mutex_lock(tsd_tsdn(tsd), &info->mtx);
630 malloc_mutex_unlock(tsd_tsdn(tsd), &info->mtx);
661 if (malloc_mutex_trylock(tsdn, &info->mtx)) {
674 if (malloc_mutex_trylock(tsdn, &decay->mtx)) {
734 malloc_mutex_unlock(tsdn, &decay->mtx);
736 malloc_mutex_unlock(tsdn, &info->mtx);
748 malloc_mutex_prefork(tsdn, &background_thread_info[i].mtx);
756 &background_thread_info[i].mtx);
765 &background_thread_info[i].mtx);
778 malloc_mutex_lock(tsdn, &info->mtx);
783 malloc_mutex_unlock(tsdn, &info->mtx);
802 if (malloc_mutex_trylock(tsdn, &info->mtx)) {
813 malloc_mutex_unlock(tsdn, &info->mtx);
923 if (malloc_mutex_init(&info->mtx, "background_thread", in background_thread_boot1()
931 malloc_mutex_lock(tsdn, &info->mtx); in background_thread_boot1()
934 malloc_mutex_unlock(tsdn, &info->mtx); in background_thread_boot1()