Skip to documentation
SLOP

alloc_observe.suppressed

Reference alloc_observe suppressed

Internal implementation documentation

Defined in alloc_observe.

Reports whether observation is currently suspended on the calling thread due to an active callback execution or an explicit suppression scope, returning false in disabled builds.

No direct callersNo direct callsalloc_observesuppressed
Static calls · unresolved targets: 0 · external targets: 0.

Source

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

zig
/// Reports whether observation is currently suspended on the calling thread due/// to an active callback execution or an explicit suppression scope, returning/// false in disabled builds. This query reflects thread suppression depth/// rather than indicating whether a sink is installed.pub inline fn suppressed() bool {    if (comptime !enabled) return false;    return callback_depth != 0;}

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

zig
/// Reports whether observation is currently suspended on the calling thread due/// to an active callback execution or an explicit suppression scope, returning/// false in disabled builds. This query reflects thread suppression depth/// rather than indicating whether a sink is installed.pub const suppressed = protocol.suppressed;

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433