resonance 1.0.1
Loading...
Searching...
No Matches
task.h File Reference
#include "app/attachment.h"
#include "os/hxstr.h"
Include dependency graph for task.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Task
 Cooperative unit of work that the run ring polls once per pass. More...
struct  Task::Node
 One position in the run ring, allocated separately from the task it refers to. More...

Enumerations

enum  TaskState { kTaskStateIdle = 0 , kTaskStateRunning = 1 , kTaskStateSuspended = 2 , kTaskStateFinished = 3 }
 The lifecycle position of a Task, stored in its scheduler node. More...

Variables

Task::Node * g_pRunningTasks
 Head of the circular run ring, or null when no task is running.

Enumeration Type Documentation

◆ TaskState

enum TaskState

The lifecycle position of a Task, stored in its scheduler node.

Enumerator
kTaskStateIdle 

Constructed or reset, and not under the scheduler.

kTaskStateRunning 

Linked into the run ring and polled once per pass.

kTaskStateSuspended 

Started once and then unlinked, retaining its position.

kTaskStateFinished 

Run to completion, and no longer startable.

Variable Documentation

◆ g_pRunningTasks

Task::Node* g_pRunningTasks
extern

Head of the circular run ring, or null when no task is running.

Ghidra address:
NTSC-U/C: 0x006fba4c
Ghidra address:
PAL: 0x0073f4c4