luat_soc_sdk_2024 V1.0
|
类型定义 | |
typedef void * | luat_rtos_mutex_t |
定义mutex句柄 | |
函数 | |
int | luat_rtos_mutex_create (luat_rtos_mutex_t *mutex_handle) |
互斥锁创建,不能在中断中unlock | |
int | luat_rtos_mutex_lock (luat_rtos_mutex_t mutex_handle, uint32_t timeout) |
获得锁 | |
int | luat_rtos_mutex_unlock (luat_rtos_mutex_t mutex_handle) |
释放锁 | |
int | luat_rtos_mutex_delete (luat_rtos_mutex_t mutex_handle) |
删除互斥锁 | |
typedef void* luat_rtos_mutex_t |
定义mutex句柄
在文件 luat_rtos.h 第 265 行定义.
int luat_rtos_mutex_create | ( | luat_rtos_mutex_t * | mutex_handle | ) |
互斥锁创建,不能在中断中unlock
mutex_handle[OUT] | 互斥锁句柄 |
int luat_rtos_mutex_delete | ( | luat_rtos_mutex_t | mutex_handle | ) |
删除互斥锁
mutex_handle | 互斥锁句柄 |
int luat_rtos_mutex_lock | ( | luat_rtos_mutex_t | mutex_handle, |
uint32_t | timeout ) |
获得锁
mutex_handle | 互斥锁句柄 |
timeout | 超时,单位ms,特殊值见LUAT_RTOS_WAIT_E |
int luat_rtos_mutex_unlock | ( | luat_rtos_mutex_t | mutex_handle | ) |
释放锁
mutex_handle | 互斥锁句柄 |