Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/kernel/
Dmutex.c211 struct k_thread *new_owner; in z_impl_k_mutex_unlock() local
255 new_owner = z_unpend_first_thread(&mutex->wait_q); in z_impl_k_mutex_unlock()
257 mutex->owner = new_owner; in z_impl_k_mutex_unlock()
260 mutex, new_owner, new_owner ? new_owner->base.prio : -1000); in z_impl_k_mutex_unlock()
262 if (new_owner != NULL) { in z_impl_k_mutex_unlock()
268 mutex->owner_orig_prio = new_owner->base.prio; in z_impl_k_mutex_unlock()
269 arch_thread_return_value_set(new_owner, 0); in z_impl_k_mutex_unlock()
270 z_ready_thread(new_owner); in z_impl_k_mutex_unlock()