|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|

结构体 | |
| 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. | |
| #define OSAL_SEM_WAIT_FOREVER (-1) |