文件名称:
osal_mutex-h.md
所在目录:
Openharmony v1.0 / docs / api / api-SmartVision-Devices
文件大小:
6.17 KB
下载地址:
文本预览:
# osal\_mutex.h
## **Overview**
**Related Modules:**
[OSAL](OSAL.md)
**Description:**
Declares mutex types and interfaces.
This file provides interfaces for initializing and destroying a mutex, locking a mutex, locking a mutex upon timeout, and unlocking a mutex. The mutex must be destroyed after being used.
**Since:**
1.0
**Version:**
1.0
## **Summary**
## Data Structures
## Macros
## Functions
## **Overview**
**Related Modules:**
[OSAL](OSAL.md)
**Description:**
Declares mutex types and interfaces.
This file provides interfaces for initializing and destroying a mutex, locking a mutex, locking a mutex upon timeout, and unlocking a mutex. The mutex must be destroyed after being used.
**Since:**
1.0
**Version:**
1.0
## **Summary**
## Data Structures
## Macros
OSAL_DECLARE_MUTEX(mutex) struct OsalMutex mutex |
## Functions
OsalMutexInit (struct OsalMutex *mutex) | |
OsalMutexDestroy (struct OsalMutex *mutex) | |
OsalMutexLock (struct OsalMutex *mutex) | |
OsalMutexTimedLock (struct OsalMutex *mutex, uint32_t ms) | Locks a mutex with a specified timeout duration. |
OsalMutexUnlock (struct OsalMutex *mutex) |
点赞
回复
X