Skip to main content

bind_context_thread

Function bind_context_thread 

Source
pub fn bind_context_thread(__arg0: ContextThreadBinding) -> RuntimeStatus
Expand description

Binds a created context to its final generation-bearing thread ID.

The runtime must validate the context handle and install the association atomically. A failed call must leave the context unbound so construction can destroy it. This hook runs under the task registry’s preempt-only lock; it must not allocate, block, invoke callbacks, or re-enter ax-task.

Providers without execution contexts still export this capability and return Unsupported, keeping trait-FFI symbol completeness explicit.