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.
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
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |