Skip to main content

Module current

Module current 

Source
Expand description

Operations bound to the calling scheduler thread.

Structs§

CurrentParkResume
Terminal scheduler information returned after a prepared park resumes.
ExitPermit
A validated, thread-bound opportunity to publish exit completion.
PreparedCurrentPark
Move-only ownership of one prepared current-thread park transaction.

Enums§

CurrentParkDisposition
Scheduler disposition of one completed current-thread park transaction.
CurrentParkStart
Result of beginning an externally queued current-thread park transaction.

Functions§

begin_current_park
Begins a scheduler-owned park transaction for an OS-owned waiter queue.
commit_current_exit
Commits a prepared scheduler exit and permanently leaves this context.
current_thread_extension
Returns the opaque extension of the calling scheduler thread.
current_thread_handle
Returns a strong handle for the calling scheduler thread.
current_thread_id
Returns the generation-bearing identity of the calling scheduler thread.
current_thread_token
Captures the scheduler thread executing this task context.
exit_current
Publishes a return code and exits through the one scheduler exit transaction.
exit_current_thread
Exits the calling thread and switches to its replacement.
prepare_current_exit
Validates scheduler-side exit prerequisites without changing the current thread’s observable lifecycle.
set_current_thread_affinity
Updates the calling thread’s affinity and completes a required migration.
sleep
Sleeps the calling scheduler thread for at least duration.
sleep_until
Sleeps until an absolute deadline measured against the monotonic clock.
validate_blocking_context
Validates that the caller may publish a waiter or block its current thread.
yield_current_cpu
Yields the calling thread and executes the resulting context switch.