WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
osal_semaphore.h 文件参考
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

结构体

struct  osal_semaphore
 

宏定义

#define OSAL_SEM_WAIT_FOREVER   (-1)
 

函数

int osal_sem_init (osal_semaphore *sem, int val)
 Create a semaphore.
 
int osal_sem_binary_sem_init (osal_semaphore *sem, int val)
 Create a binary semaphore.
 
int osal_sem_down (osal_semaphore *sem)
 Request a semaphore.
 
int osal_sem_down_timeout (osal_semaphore *sem, unsigned int timeout)
 Acquire the semaphore within a specified time that specifies the timeout period.
 
int osal_sem_down_interruptible (osal_semaphore *sem)
 acquire the semaphore unless interrupted.
 
int osal_sem_trydown (osal_semaphore *sem)
 try to acquire the semaphore, without waiting.
 
void osal_sem_up (osal_semaphore *sem)
 Release a semaphore.
 
void osal_sem_destroy (osal_semaphore *sem)
 Delete a semaphore.
 

宏定义说明

◆ OSAL_SEM_WAIT_FOREVER

#define OSAL_SEM_WAIT_FOREVER   (-1)