Home
last modified time | relevance | path

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

/Zephyr-latest/kernel/
Dmutex.c58 mutex->lock_count = 0U; in z_impl_k_mutex_init()
117 if (likely((mutex->lock_count == 0U) || (mutex->owner == arch_current_thread()))) { in z_impl_k_mutex_lock()
119 mutex->owner_orig_prio = (mutex->lock_count == 0U) ? in z_impl_k_mutex_lock()
123 mutex->lock_count++; in z_impl_k_mutex_lock()
127 arch_current_thread(), mutex, mutex->lock_count, in z_impl_k_mutex_lock()
239 __ASSERT_NO_MSG(mutex->lock_count > 0U); in z_impl_k_mutex_unlock()
241 LOG_DBG("mutex %p lock_count: %d", mutex, mutex->lock_count); in z_impl_k_mutex_unlock()
247 if (mutex->lock_count > 1U) { in z_impl_k_mutex_unlock()
248 mutex->lock_count--; in z_impl_k_mutex_unlock()
275 mutex->lock_count = 0U; in z_impl_k_mutex_unlock()
/Zephyr-latest/lib/posix/options/
Dmutex.c113 size_t lock_count = -1; in acquire_mutex() local
130 lock_count = m->lock_count; in acquire_mutex()
153 if (lock_count >= MUTEX_MAX_REC_LOCK) { in acquire_mutex()
/Zephyr-latest/lib/os/
Dmutex.c59 if ((kernel_mutex == NULL) || (kernel_mutex->lock_count == 0)) { in z_impl_z_sys_mutex_kernel_unlock()
/Zephyr-latest/subsys/portability/cmsis_rtos_v2/
Dmutex.c151 if (mutex->z_mutex.lock_count == 0U) { in osMutexGetOwner()
/Zephyr-latest/include/zephyr/
Dkernel.h3031 uint32_t lock_count; member
3050 .lock_count = 0, \
/Zephyr-latest/doc/releases/
Drelease-notes-2.7.rst1599 * :github:`36572` - kernel: Negative mutex lock_count value