Home
last modified time | relevance | path

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

/Zephyr-Core-3.4.0/kernel/
Dmutex.c52 mutex->lock_count = 0U; in z_impl_k_mutex_init()
107 if (likely((mutex->lock_count == 0U) || (mutex->owner == _current))) { in z_impl_k_mutex_lock()
109 mutex->owner_orig_prio = (mutex->lock_count == 0U) ? in z_impl_k_mutex_lock()
113 mutex->lock_count++; in z_impl_k_mutex_lock()
117 _current, mutex, mutex->lock_count, in z_impl_k_mutex_lock()
229 __ASSERT_NO_MSG(mutex->lock_count > 0U); in z_impl_k_mutex_unlock()
231 LOG_DBG("mutex %p lock_count: %d", mutex, mutex->lock_count); in z_impl_k_mutex_unlock()
237 if (mutex->lock_count > 1U) { in z_impl_k_mutex_unlock()
238 mutex->lock_count--; in z_impl_k_mutex_unlock()
265 mutex->lock_count = 0U; in z_impl_k_mutex_unlock()
/Zephyr-Core-3.4.0/lib/os/
Dmutex.c59 if (kernel_mutex == NULL || kernel_mutex->lock_count == 0) { in z_impl_z_sys_mutex_kernel_unlock()
/Zephyr-Core-3.4.0/subsys/portability/cmsis_rtos_v2/
Dmutex.c151 if (mutex->z_mutex.lock_count == 0U) { in osMutexGetOwner()
/Zephyr-Core-3.4.0/lib/posix/
Dpthread_mutex.c132 if (m->lock_count >= MUTEX_MAX_REC_LOCK) { in acquire_mutex()
/Zephyr-Core-3.4.0/include/zephyr/
Dkernel.h2829 uint32_t lock_count; member
2844 .lock_count = 0, \
/Zephyr-Core-3.4.0/doc/releases/
Drelease-notes-2.7.rst1599 * :github:`36572` - kernel: Negative mutex lock_count value