Skip to documentation
SLOP

tiny.alloc.PhaseBoundary

Reference tiny.alloc PhaseBoundary

Defined in tiny.alloc.

API (4)

Actions

Public operations.

Fields and members

Public fields and members.

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

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;
Called byCallsNo direct callerstiny.allocbeginProcessAllocatorTeardownPhaseBoundarybeginTeardown
Static calls · unresolved targets: 0 · external targets: 0.
Called byCallsNo direct callerstiny.allocsealProcessAllocatorPhasePhaseBoundaryseal
Static calls · unresolved targets: 0 · external targets: 0.

Audit

Definitions4
Public names4
Members1
Version26.7.0
Revisiondaab053ee433