Function nemo_relay_scope_stack_set_thread
Function nemo_relay_scope_stack_set_thread
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
#[unsafe(no_mangle)]pub unsafe extern "C" fn nemo_relay_scope_stack_set_thread(
stack: *const FfiScopeStack,
) -> NemoRelayStatus
Bind an isolated scope stack to the current OS thread.
After this call, all NeMo Relay scope operations on the current thread (e.g. nemo_relay_push_scope, nemo_relay_get_handle) will use the given scope stack. This is typically used from Go goroutines that have called runtime.LockOSThread().
The FfiScopeStack is not consumed - the caller retains ownership and must still free it when done.
Parameters
stack: Scope stack to bind to the current OS thread.
Returns
- Returns
NemoRelayStatus::Okwhen the thread-local scope stack was updated successfully. - Returns
NemoRelayStatus::NullPointerwhenstackis null.
Safety
stack must be a valid, non-null FfiScopeStack pointer.