目录

ffrt_function_header_t

typedef struct {...} ffrt_function_header_t

Overview

Task execution body, used to define the execution and destruction callbacks of a task. The exec callback is invoked when the task is scheduled, and the destroy callback is invoked after the task is complete to release task-related resources. Together, they manage the complete lifecycle of an FFRT task.

Since: 10

Related module: FFRT

Header file: type_def.h

Summary

[h2]Member Variables

Name Description
ffrt_function_t exec Function for executing the task. Called by the framework when the task is scheduled.
ffrt_function_t destroy Function for destroying the task. Called by the framework to release resources after the task is executed.
uint64_t reserve[2] Reserved field. Set it to 0.