harmony 鸿蒙shared_mutex.h
shared_mutex.h
Overview
The shared_mutex.h file declares read-write lock interfaces in C.
Library: libffrt.z.so
System capability: SystemCapability.Resourceschedule.Ffrt.Core
Since: 18
Related module: FFRT
Summary
Functions
Name | Description |
---|---|
FFRT_C_API int ffrt_rwlock_init (ffrt_rwlock_t *rwlock, const ffrt_rwlockattr_t *attr) | Initializes a read-write lock. |
FFRT_C_API int ffrt_rwlock_wrlock (ffrt_rwlock_t *rwlock) | Obtains a write lock. |
FFRT_C_API int ffrt_rwlock_trywrlock (ffrt_rwlock_t *rwlock) | Attempts to obtain a write lock; if it fails, the function returns immediately. |
FFRT_C_API int ffrt_rwlock_rdlock (ffrt_rwlock_t *rwlock) | Obtains a read lock. |
FFRT_C_API int ffrt_rwlock_tryrdlock (ffrt_rwlock_t *rwlock) | Attempts to obtain a read lock; if it fails, the function returns immediately. |
FFRT_C_API int ffrt_rwlock_unlock (ffrt_rwlock_t *rwlock) | Releases the read-write lock. |
FFRT_C_API int ffrt_rwlock_destroy (ffrt_rwlock_t *rwlock) | Destroys the read-write lock. |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙Function Flow Runtime Kit
harmony 鸿蒙condition_variable.h
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦