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