Module keos::thread

source ·
Expand description

A thread, abstraction of a cpu core.

The threading model

An executing kernel consists of a collection of threads, each with their own stack and local state. Threads can be named, and provide some built-in support for low-level synchronization.

Modules

Multi-producer, multi-consumer FIFO queue communication primitives.
Thread scheduler

Structs

A handle to join thread.
A handle that represent the parked thread.
An thread abstraction.
A struct to build a new thread.

Enums

A possible state of the thread.

Constants

Size of each thread’s stack.
Thread magic to detect stack overflow.

Functions

Run a function f with current thread as an argument.

Type Definitions

A RAII implementation of the thread pinning.