Skip to main content

sync_thread_scope_stack

Function sync_thread_scope_stack 

Source
pub fn sync_thread_scope_stack(handle: ScopeStackHandle)
Expand description

Synchronize the thread-local scope stack without marking it explicit.

This updates the thread-local slot used by native runtime code while preserving whether the thread was explicitly marked as owning a scope stack.

§Parameters

  • handle: Scope stack handle to synchronize into thread-local storage.

§Returns

().

§Notes

Python bindings use this to mirror ContextVar state into Rust without forcing scope_stack_active() to become true for the thread.