![]() |
dfx 0.1.0
Linux-based dynamic dataflow executor
|
Host-provided API for interacting with a scheduled task. More...
#include <dfx-plugins-interface/PluginInterface.h>
Public Attributes | |
| dfx_task_handle_t | handle |
| Opaque handle to the host's internal task representation. | |
| int(* | get_priority )(dfx_task_handle_t handle) |
| Retrieves the execution priority of the task. | |
| int(* | run )(dfx_task_handle_t handle) |
| Executes the task's payload. | |
Host-provided API for interacting with a scheduled task.
When a task is pushed to a plugin's custom executor, the host provides this API to allow the executor to interrogate task metadata (like priority) and ultimately execute the task payload.
| int(* dfx_task_api_t::get_priority) (dfx_task_handle_t handle) |
Retrieves the execution priority of the task.
| [in] | handle | The task handle provided in this struct. |
| dfx_task_handle_t dfx_task_api_t::handle |
Opaque handle to the host's internal task representation.
| int(* dfx_task_api_t::run) (dfx_task_handle_t handle) |
Executes the task's payload.
This function must be called by the plugin's executor to actually perform the work associated with the task.
| [in] | handle | The task handle provided in this struct. |
errno is set to:handle is NULL.