Searched refs:mutex_is_locked (Results 1 – 4 of 4) sorted by relevance
18 assert(mutex_is_locked(&mtx) == 0); in ktest_mutex_case0()20 assert(mutex_is_locked(&mtx) == 1); in ktest_mutex_case0()22 assert(mutex_is_locked(&mtx) == 0); in ktest_mutex_case0()25 assert(mutex_is_locked(&mtx) == 0); in ktest_mutex_case0()37 assert(mutex_is_locked(&mtx) == 1); in ktest_mutex_case1_pid1()49 if (!assert(mutex_is_locked(&mtx) == 0)) in ktest_mutex_case1()
38 if (likely(mutex_is_locked(lock))) in mutex_lock()72 if (unlikely(!mutex_is_locked(lock))) in mutex_unlock()77 if (mutex_is_locked(lock)) in mutex_unlock()105 if (mutex_is_locked(lock)) in mutex_trylock()109 if (mutex_is_locked(lock)) in mutex_trylock()
94 ##### mutex_is_locked l4subsection96 **`void mutex_is_locked(mutex_t *lock)`**
69 #define mutex_is_locked(lock) ((atomic_read(&(lock)->count) == 1) ? 0 : 1) macro