tiny.alloc.PhaseBoundary
Defined in tiny.alloc.
API (4)
Actions
Public operations.
Fields and members
Public fields and members.
Source
Source: lib/alloc/src/boundary.zig:13
zig
pub const PhaseBoundary = struct { state: ?*PhaseBoundaryState = null, pub fn seal(self: PhaseBoundary) void { const state = self.state orelse return; std.debug.assert(state.phase == .initialization); policy.sealProcessAllocatorPhase(); state.phase = .steady; state.sealed = true; } pub fn beginTeardown(self: PhaseBoundary) void { const state = self.state orelse return; if (state.phase != .steady) return; policy.beginProcessAllocatorTeardown(); state.phase = .teardown; } pub fn sealed(self: PhaseBoundary) bool { const state = self.state orelse return false; return state.sealed; }};Source: lib/alloc/src/root.zig:70
zig
pub const PhaseBoundary = boundary.PhaseBoundary;Audit
| Definitions | 4 |
|---|---|
| Public names | 4 |
| Members | 1 |
| Version | 26.7.0 |
| Revision | daab053ee433 |