CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
TaskControl Struct Reference

#include <taskqueue_shared.h>

Data Fields

Eventnotifyev
 
int64 delay
 

Detailed Description

Task control structure for output parameters from task execution

This structure is passed to task run() methods as an output parameter, allowing tasks to communicate state changes back to the task queue system without affecting the return value.

Definition at line 115 of file taskqueue_shared.h.

Field Documentation

◆ delay

int64 TaskControl::delay

Delay before rescheduling this task.

Used by ComplexTask and derived classes when returning TASK_Result_Schedule or TASK_Result_Defer from run(). Specifies how long to wait before running the task again. A delay of -1 indicates the task should run whenever any other task completes.

Definition at line 128 of file taskqueue_shared.h.

◆ notifyev

Event* TaskControl::notifyev

Event to signal after task completes or fails.

Used by Task and derived classes. If set, the task queue will signal this event when the task reaches a terminal state (TASK_Succeeded or TASK_Failed). This allows other threads to wait for task completion.

Definition at line 121 of file taskqueue_shared.h.


The documentation for this struct was generated from the following file: