Skip to documentation
SLOP

alloc_observe.Context

Reference alloc_observe Context

Internal implementation documentation

Defined in alloc_observe.

A silent thread-bound nesting token that reserves an operation identifier and participates in thread hierarchy tracking without publishing an event upon completion.

No direct callersNo direct callsalloc_observeContext
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/alloc/observe/src/protocol.zig:374

zig
/// A silent thread-bound nesting token that reserves an operation identifier/// and participates in thread hierarchy tracking without publishing an event/// upon completion. An active context updates the thread current operation ID,/// links to the prior parent, and increments the shared active operation/// counter. Callers must finish contexts in last-in, first-out order on the/// originating thread, treating each token as having a single authoritative/// owner. When observation is disabled, suppressed, or executed without an/// installed sink, the returned context is inactive and reports an identifier/// of zero.pub const Context = if (enabled) EnabledContext else DisabledContext;

Source: lib/alloc/observe/src/root.zig:352

zig
/// A silent thread-bound nesting token that reserves an operation identifier/// and participates in thread hierarchy tracking without publishing an event/// upon completion. An active context updates the thread current operation ID,/// links to the prior parent, and increments the shared active operation/// counter. Callers must finish contexts in last-in, first-out order on the/// originating thread, treating each token as having a single authoritative/// owner. When observation is disabled, suppressed, or executed without an/// installed sink, the returned context is inactive and reports an identifier/// of zero.pub const Context = protocol.Context;

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433