CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
Task Dependencies

Data Structures

struct  TaskRequiresTask
 Dependency on another task completing. More...
 

Macros

#define taskrequirestaskCreate(deptask, failok)   TaskRequiresTask_create(Task(deptask), failok)
 

Typedefs

typedef struct TaskRequiresTask TaskRequiresTask
 Dependency on another task completing.
 

Detailed Description

TaskRequiresTask creates a dependency on another task completing. The dependent task will not run until the required task reaches a final state (TASK_Succeeded or TASK_Failed).

If failok is false, the dependent task will fail if the required task fails. If failok is true (soft dependency), the dependent task can run even if the required task fails (useful with TASK_Soft_Requires flag).

Macro Definition Documentation

◆ taskrequirestaskCreate

#define taskrequirestaskCreate (   deptask,
  failok 
)    TaskRequiresTask_create(Task(deptask), failok)

TaskRequiresTask* taskrequirestaskCreate(Task* deptask, bool failok);

Create a task dependency requirement.

Parameters
deptaskTask that must complete before dependent task can run
failokIf true, allow dependent task to run even if deptask fails (soft dependency)
Returns
New TaskRequiresTask instance

Definition at line 90 of file taskrequirestask.h.