Skip to main content

Module thread

Module thread 

Source
Expand description

Thread identity, lifecycle and generation-valid management handles.

Modules§

current
Operations bound to the calling scheduler thread.

Structs§

CurrentThreadToken
Move-only proof of the scheduler thread executing this task context.
KernelThreadHandle
Join capability for one runtime-backed kernel thread.
ParkTicket
Move-only ownership of one park attempt and its optional timeout deadline.
ThreadBuilder
Resource and diagnostic configuration for one kernel thread.
ThreadExtension
Opaque OS-specific data attached to a thread.
ThreadExtensionBorrow
Extension identity borrowed for exactly as long as a strong thread handle.
ThreadExtensionLease
Owned extension lease used when the caller has no pre-existing handle.
ThreadExtensionOps
OS-owned callbacks attached to a thread without exposing OS types.
ThreadExtensionView
Copy-only borrowed identity for an installed OS extension.
ThreadHandle
A strong reference used to inspect and control a live thread.
ThreadId
A thread registry identity containing a slot and reuse generation.
ThreadRuntimeSnapshot
Runqueue-coherent snapshot of one thread’s charged CPU runtime.
ThreadSpec
Validated inputs used to create a scheduler thread record.
ThreadWakeBatch
A task-context wake list backed by nodes embedded in each thread core.
ThreadWakeHandle
A stable direct wake header reference.
WeakThreadHandle
A non-owning thread observer for ordinary task context.

Enums§

ParkCommit
Result of rechecking a prepared park at the scheduler safe point.
ParkPrepare
Result of publishing the PARKING phase.
SwitchReason
Why a running thread relinquished its execution context.
TaskError
Errors produced by task-system operations.
ThreadState
Observable lifecycle state of a thread.
WakeResult
Result of an IRQ-safe wake publication.

Constants§

DEFAULT_KERNEL_THREAD_STACK_SIZE
Default stack size used by portable kernel service threads.

Type Aliases§

RunningPolicyAppliedHook
Bounded OS hook invoked when the owner changes a running thread’s base policy.