Skip to main content

Module task

Module task 

Source
Expand description

Safe, idiomatic wrappers for OSAL Task APIs.

This module provides utilities for task management, such as delaying the current task, retrieving task IDs, and managing task priorities.

Structs§

Task
A handle to an OSAL task.
TaskFlags
Options for task creation.
TaskId
A type-safe, zero-cost wrapper for an OSAL Task ID.
TaskProp
Properties of an OSAL task, returned by Task::get_info.

Functions§

delay
Delays the execution of the current task for at least the specified duration.
exit
Exits the calling task.
find_id_by_system_data
Reverse-looks up an OSAL task ID from an underlying operating system ID.
install_delete_handler
Installs a handler function to be called when the current task is deleted.

Type Aliases§

TaskDeleteHandler
Type alias for a handler function called on task deletion.