Home
last modified time | relevance | path

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

/hal_rpi_pico-latest/src/rp2_common/pico_async_context/
Dasync_context_threadsafe_background.c78 recursive_mutex_enter_blocking(&self->lock_mutex); in lock_acquire()
84 …if (recursive_mutex_enter_count(&self->lock_mutex) < 1 || recursive_mutex_owner(&self->lock_mutex)… in async_context_threadsafe_background_lock_check()
107 bool outermost = 1 == recursive_mutex_enter_count(&self->lock_mutex); in lock_release()
130 recursive_mutex_exit(&self->lock_mutex); in lock_release()
142 hard_assert(!recursive_mutex_enter_count(&self->lock_mutex)); in async_context_threadsafe_background_execute_sync()
218 recursive_mutex_init(&self->lock_mutex); in async_context_threadsafe_background_init()
240 recursive_mutex_enter_blocking(&self->lock_mutex); in async_context_threadsafe_background_deinit()
241 recursive_mutex_exit(&self->lock_mutex); in async_context_threadsafe_background_deinit()
289 if (recursive_mutex_try_enter(&self->lock_mutex, NULL)) { in low_priority_irq_handler()
292 if (recursive_mutex_enter_count(&self->lock_mutex) == 1) { in low_priority_irq_handler()
[all …]
Dasync_context_freertos.c112 self->lock_mutex = xSemaphoreCreateRecursiveMutex(); in async_context_freertos_init()
120 if (!self->lock_mutex || in async_context_freertos_init()
154 if (self->lock_mutex) { in async_context_freertos_deinit()
155 vSemaphoreDelete(self->lock_mutex); in async_context_freertos_deinit()
167 xSemaphoreTakeRecursive(self->lock_mutex, portMAX_DELAY); in async_context_freertos_acquire_lock_blocking()
175 assert(xSemaphoreGetMutexHolder(self->lock_mutex) == xTaskGetCurrentTaskHandle()); in async_context_freertos_lock_check()
195 hard_assert(xSemaphoreGetMutexHolder(self->lock_mutex) != xTaskGetCurrentTaskHandle()); in async_context_freertos_execute_sync()
226 xSemaphoreGiveRecursive(self->lock_mutex); in async_context_freertos_release_lock()
/hal_rpi_pico-latest/src/rp2_common/pico_async_context/include/pico/
Dasync_context_threadsafe_background.h60 recursive_mutex_t lock_mutex; member
Dasync_context_freertos.h70 SemaphoreHandle_t lock_mutex; member