⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module thread_api

Module thread_api 

Source
Expand description

Thread Management APIs

High-level thread management interface for user-space applications.

Structs§

ThreadAttributes
Thread attributes
ThreadCreateParams
Thread creation parameters
ThreadHandle
Thread handle for management
ThreadManager
Thread management system
ThreadStats
Thread statistics
TlsKey
Thread-local storage key

Enums§

SchedulingPolicy
Thread scheduling policy
ThreadPriority
Thread priority levels
ThreadState
Thread state

Functions§

create_thread
Create a new thread
exit_thread
Exit current thread
get_thread_manager
Get the global thread manager.
init
Initialize the thread manager
join_thread
Join a thread
sleep_ms
Sleep for a number of milliseconds
try_get_thread_manager
Try to get the global thread manager without panicking.
yield_thread
Yield CPU to scheduler

Type Aliases§

ThreadEntryPoint
Thread entry point function type