Searched refs:mutex (Results 1 – 4 of 4) sorted by relevance
116 sl_status_t se_manager_osal_init_mutex(se_manager_osal_mutex_t *mutex) in se_manager_osal_init_mutex() argument118 if (mutex == NULL) { in se_manager_osal_init_mutex()124 memset(&mutex->mutex_attr, 0, sizeof(mutex->mutex_attr)); in se_manager_osal_init_mutex()125 mutex->mutex_attr.cb_mem = &mutex->static_sem_object; in se_manager_osal_init_mutex()126 mutex->mutex_attr.cb_size = sizeof(mutex->static_sem_object); in se_manager_osal_init_mutex()127 mutex->mutex_ID = osMutexNew(&mutex->mutex_attr); in se_manager_osal_init_mutex()129 mutex->mutex_ID = osMutexNew(NULL); in se_manager_osal_init_mutex()132 return (mutex->mutex_ID == NULL ? SL_STATUS_FAIL : SL_STATUS_OK); in se_manager_osal_init_mutex()137 sl_status_t se_manager_osal_free_mutex(se_manager_osal_mutex_t *mutex) in se_manager_osal_free_mutex() argument139 if (mutex == NULL) { in se_manager_osal_free_mutex()[all …]
52 sl_status_t se_manager_osal_init_mutex(se_manager_osal_mutex_t *mutex) in se_manager_osal_init_mutex() argument56 err = k_mutex_init(mutex); in se_manager_osal_init_mutex()62 sl_status_t se_manager_osal_free_mutex(se_manager_osal_mutex_t *mutex) in se_manager_osal_free_mutex() argument69 sl_status_t se_manager_osal_take_mutex(se_manager_osal_mutex_t *mutex) in se_manager_osal_take_mutex() argument78 err = k_mutex_lock(mutex, K_FOREVER); in se_manager_osal_take_mutex()84 sl_status_t se_manager_osal_take_mutex_non_blocking(se_manager_osal_mutex_t *mutex) in se_manager_osal_take_mutex_non_blocking() argument93 err = k_mutex_lock(mutex, K_NO_WAIT); in se_manager_osal_take_mutex_non_blocking()99 sl_status_t se_manager_osal_give_mutex(se_manager_osal_mutex_t *mutex) in se_manager_osal_give_mutex() argument101 int err = k_mutex_unlock(mutex); in se_manager_osal_give_mutex()
69 __STATIC_INLINE sl_status_t se_manager_osal_init_mutex(se_manager_osal_mutex_t *mutex);78 __STATIC_INLINE sl_status_t se_manager_osal_free_mutex(se_manager_osal_mutex_t *mutex);87 __STATIC_INLINE sl_status_t se_manager_osal_take_mutex(se_manager_osal_mutex_t *mutex);96 __STATIC_INLINE sl_status_t se_manager_osal_take_mutex_non_blocking(se_manager_osal_mutex_t *mutex);105 __STATIC_INLINE sl_status_t se_manager_osal_give_mutex(se_manager_osal_mutex_t *mutex);