Lines Matching refs:mutex
89 if (futex->mutex) in _pftx_destroy_locked()
91 rt_mutex_delete(futex->mutex); in _pftx_destroy_locked()
92 futex->mutex = RT_NULL; in _pftx_destroy_locked()
152 futex->mutex = RT_NULL; in _pftx_create_locked()
220 if (futex->mutex) in _sftx_destroy()
222 rt_mutex_delete(futex->mutex); in _sftx_destroy()
223 futex->mutex = RT_NULL; in _sftx_destroy()
261 futex->mutex = RT_NULL; in _sftx_create()
620 if (futex->mutex == RT_NULL) in _futex_lock_pi()
622 futex->mutex = rt_mutex_create("futexpi", RT_IPC_FLAG_PRIO); in _futex_lock_pi()
623 if (futex->mutex == RT_NULL) in _futex_lock_pi()
630 rt_spin_lock(&(futex->mutex->spinlock)); in _futex_lock_pi()
631 futex->mutex->owner = thread; in _futex_lock_pi()
632 futex->mutex->hold = 1; in _futex_lock_pi()
633 rt_spin_unlock(&(futex->mutex->spinlock)); in _futex_lock_pi()
646 err = rt_mutex_take_interruptible(futex->mutex, to); in _futex_lock_pi()
667 if (!futex->mutex) in _futex_unlock_pi()
674 err = rt_mutex_release(futex->mutex); in _futex_unlock_pi()