Preliminary. ThinkMeta ConcurrentTasks and this documentation are preliminary; everything is subject to change.

API reference / Core

TaskPriority enum

Priority of a task.

Use
#include <ThinkMeta.ConcurrentTasks/Core.h>
Namespace
ThinkMeta::ConcurrentTasks

Syntax

enum class TaskPriority : int

Remarks

The Default scheduler keeps one queue pair per real priority; SchedulerKind::TaskSwap ignores priorities.

See also

SetTaskPriority

Values

Default

Inherits the calling task's priority.

Syntax

Default

Remarks

For ITaskScheduler::AddTask: the calling task's priority, or Normal when the caller is not a task. Not meaningful as a task's own priority.

Normal

Runs when no High work is runnable.

Syntax

Normal

High

Always taken before Normal work.

Syntax

High

Remarks

There is no aging: a steady stream of High work starves Normal tasks.

Generated from ThinkMeta.ConcurrentTasks.API @ 137ec1d (2026-10-17).