Module task_id

Module task_id 

Source
Expand description

Task identification and propagation for async memory tracking

This module provides zero-overhead task identification using Context waker addresses combined with global epoch counters to ensure absolute uniqueness across the application lifetime.

Structs§

TaskInfo
Extended task information stored in thread-local storage

Functions§

clear_current_task
Clear current task context
current_epoch
Get current epoch counter value for diagnostics
generate_task_id
Generate unique task ID from Context waker
get_current_task
Get current task information from thread-local storage
set_current_task
Set current task information in thread-local storage
update_span_id
Update span ID for tracing integration

Type Aliases§

TaskId
Unique identifier for async tasks