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

API reference

Core

The scheduler: its entry points, durations, priorities and the interfaces exchanged with it.

NameDescription
Functions and constants functions Free functions and constants of Core.
DispatcherWakeProc alias Hands a task that can run to the event loop of a dispatcher scheduler.
Duration struct A span of time, counted in units of 100 nanoseconds.
IDispatcherScheduler interface A scheduler that runs its tasks on a thread with an event loop of its own, such as a UI thread.
ILocalScheduler interface A scheduler that runs its tasks inside Run, on the thread that calls it.
INotifyTaskStateChange interface Is told when a task has finished.
IoCompletionRoutine alias Called for every completion packet of an associated handle.
IoOperation enum The operation an IoRequest describes.
IoRequest struct One asynchronous operation, described by the caller and carried out by the core.
ISuspendCallback interface Receives the handle of the task that has just been suspended.
ITask interface A unit of work the scheduler runs on one of its fibers.
ITaskScheduler interface A scheduler: a set of OS threads that run tasks on fibers.
ITaskSwitchPolicy interface Decides when a SchedulerKind::TaskSwap scheduler switches tasks.
ListEntry struct An entry of an intrusive singly linked list: the link lives in the item.
NativeThread alias The handle of a native thread: HANDLE on Windows, pthread_t elsewhere.
SchedulerInfo struct Parameters of CreateTaskScheduler.
SchedulerKind enum Selects the scheduler implementation.
SuspendedTaskEntry struct The bookkeeping of a task while it is suspended.
TaskControlData struct Storage the core keeps per task to control its start and its waits.
TaskEntry struct The scheduler-owned bookkeeping of one task.
TaskPriority enum Priority of a task.
ThreadCallbackProc alias Called on each scheduler thread when it starts and when it exits.
ThreadCallbackReason enum Tells a ThreadCallbackProc why it is called.
WaitStatus enum Tells how a wait ended.
YieldFlags enum Selects how YieldTask gives up the processor.