harmony 鸿蒙type_def.h
type_def.h
概述
定义通用类型。
引用文件:<ffrt/type_def.h>
库: libffrt.z.so
系统能力: SystemCapability.Resourceschedule.Ffrt.Core
起始版本: 10
相关模块:FFRT
汇总
结构体
名称 | 描述 |
---|---|
struct ffrt_function_header_t | 任务执行体。 |
struct ffrt_dependence_t | 依赖数据结构。 |
struct ffrt_deps_t | 依赖结构定义。 |
struct ffrt_task_attr_t | 并行任务属性结构。 |
struct ffrt_queue_attr_t | 串行队列属性结构。 |
struct ffrt_condattr_t | FFRT条件变量属性结构。 |
struct ffrt_mutexattr_t | FFRT锁属性结构。 |
struct ffrt_rwlockattr_t | FFRT读写锁属性结构。 |
struct ffrt_mutex_t | FFRT互斥锁结构。 |
struct ffrt_rwlock_t | FFRT读写锁结构。 |
struct ffrt_cond_t | FFRT条件变量结构。 |
类型定义
名称 | 描述 |
---|---|
typedef int ffrt_qos_t | QoS类型。 |
typedef void(* ffrt_function_t) (void *) | 任务执行函数指针类型。 |
typedef void * ffrt_task_handle_t | 并行任务句柄。 |
typedef void(* ffrt_poller_cb) (void *data, uint32_t event) | poller回调函数定义。 |
typedef void(* ffrt_timer_cb) (void *data) | timer回调函数定义。 |
typedef int ffrt_timer_t | 定时器句柄。 |
枚举
名称 | 描述 |
---|---|
ffrt_queue_priority_t { ffrt_queue_priority_immediate = 0, ffrt_queue_priority_high, ffrt_queue_priority_low, ffrt_queue_priority_idle } |
任务的优先级类型。 |
ffrt_qos_default_t { ffrt_qos_inherit = -1, ffrt_qos_background, ffrt_qos_utility, ffrt_qos_default, ffrt_qos_user_initiated } |
任务的QoS类型。 |
ffrt_storage_size_t { ffrt_task_attr_storage_size = 128, ffrt_auto_managed_function_storage_size = 64 + sizeof(ffrt_function_header_t), ffrt_mutex_storage_size = 64, ffrt_cond_storage_size = 64, ffrt_queue_attr_storage_size = 128 } |
多种类型数据结构分配大小定义。 |
ffrt_function_kind_t { ffrt_function_kind_general, ffrt_function_kind_queue } |
任务类型。 |
ffrt_dependence_type_t { ffrt_dependence_data, ffrt_dependence_task } |
依赖类型。 |
ffrt_error_t { ffrt_error = -1, ffrt_success = 0, ffrt_error_nomem = ENOMEM, ffrt_error_timedout = ETIMEDOUT, ffrt_error_busy = EBUSY, ffrt_error_inval = EINVAL } |
FFRT错误码。 |
ffrt_mutex_type { ffrt_mutex_normal = 0, ffrt_mutex_recursive = 2, ffrt_mutex_default = ffrt_mutex_normal } |
互斥锁类型枚举。 |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙Function Flow Runtime Kit(任务并发调度服务)
harmony 鸿蒙condition_variable.h
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦