|
CX Framework
Cross-platform C utility framework
|
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. | |
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).
| #define taskrequirestaskCreate | ( | deptask, | |
| failok | |||
| ) | TaskRequiresTask_create(Task(deptask), failok) |
TaskRequiresTask* taskrequirestaskCreate(Task* deptask, bool failok);
Create a task dependency requirement.
| deptask | Task that must complete before dependent task can run |
| failok | If true, allow dependent task to run even if deptask fails (soft dependency) |
Definition at line 90 of file taskrequirestask.h.