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

Task with name, timing information, and completion callbacks. More...

#include <task.h>

Public Member Functions

 atomic (uint32) state
 

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)
 

Detailed Description

Task with name, timing information, and completion callbacks.

Definition at line 62 of file task.h.

Member Function Documentation

◆ atomic()

Task::atomic ( uint32  )

Current task state and flags

Field Documentation

◆ logctx

void* Task::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 77 of file task.h.


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