harmony 鸿蒙mutex.h
mutex.h
Overview
The mutex.h file declares the mutex interfaces in C.
File to include: <ffrt/mutex.h>
Library: libffrt.z.so
System capability: SystemCapability.Resourceschedule.Ffrt.Core
Since: 10
Related module: FFRT
Summary
Functions
Name | Description |
---|---|
FFRT_C_API int ffrt_mutexattr_init (ffrt_mutexattr_t *attr) | Initializes the mutex attribute. |
FFRT_C_API int ffrt_mutexattr_settype (ffrt_mutexattr_t *attr, int type) | Sets the mutex attribute type. |
FFRT_C_API int ffrt_mutexattr_gettype (ffrt_mutexattr_t *attr, int *type) | Obtains the mutex type. |
FFRT_C_API int ffrt_mutexattr_destroy (ffrt_mutexattr_t *attr) | Destroys the mutex attribute. This API needs to be called by users. |
FFRT_C_API int ffrt_mutex_init (ffrt_mutex_t *mutex, const ffrt_mutexattr_t *attr) | Initializes a mutex. |
FFRT_C_API int ffrt_mutex_lock (ffrt_mutex_t *mutex) | Locks a mutex. |
FFRT_C_API int ffrt_mutex_unlock (ffrt_mutex_t *mutex) | Unlocks a mutex. |
FFRT_C_API int ffrt_mutex_trylock (ffrt_mutex_t *mutex) | Attempts to lock a mutex. |
FFRT_C_API int ffrt_mutex_destroy (ffrt_mutex_t *mutex) | Destroys a mutex. |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙Function Flow Runtime Kit
harmony 鸿蒙condition_variable.h
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦