|
CX Framework
Cross-platform C utility framework
|
Complex task with dependencies, scheduling, and resource management. More...
#include <complextask.h>
Public Member Functions | |
| atomic (uint32) state | |
| Weak (ComplexTaskQueue) *lastq | |
| Last queue this task ran on before being deferred. | |
| atomic (uint32) _advcount | |
| Number of times task has been advanced. | |
Data Fields | |
| void * | logctx |
| string | name |
| Task name shown in monitor output. | |
| int64 | last |
| Last time this task was moved between queues and/or run. | |
| cchain | oncomplete |
| Functions called when task completes (success or failure) | |
| int64 | nextrun |
| Next scheduled run time. | |
| int64 | lastprogress |
| Timestamp of last progress change. | |
| sa_TaskRequires | _requires |
| List of requirements (dependencies, resources, gates) | |
| uint16 | flags |
| Task behavior flags (ComplexTaskFlagsEnum) | |
| uint16 | _intflags |
| Internal flags reserved for scheduler use. | |
Complex task with dependencies, scheduling, and resource management.
Definition at line 112 of file complextask.h.
| ComplexTask::atomic | ( | uint32 | ) |
Current task state and flags
| void* ComplexTask::logctx |
Log context captured when the task was added to a queue and restored around run(), so records written on the worker thread still carry the submitter's log context. Owned; use logCtx* to touch it.
Definition at line 128 of file complextask.h.