Skip to documentation
SLOP

tiny.tracy.Lock

Reference tiny.tracy Lock

Defined in tiny.tracy.

API (11)

Actions

Public operations.

Fields and members

Public fields and members.

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

Source

Source: lib/tracy/src/runtime.zig:296

zig
pub const Lock = struct {    id: u64 = 0,    active: bool = false,    pub inline fn terminate(self: Lock) void {        if (enabled and self.active) global.lockEvent(self.id, .lock_terminate);    }    pub inline fn wait(self: Lock) void {        if (enabled and self.active) global.lockEvent(self.id, .lock_wait);    }    pub inline fn obtain(self: Lock) void {        if (enabled and self.active) global.lockEvent(self.id, .lock_obtain);    }    pub inline fn release(self: Lock) void {        if (enabled and self.active) global.lockEvent(self.id, .lock_release);    }    pub inline fn sharedWait(self: Lock) void {        if (enabled and self.active) global.lockEvent(self.id, .lock_shared_wait);    }    pub inline fn sharedObtain(self: Lock) void {        if (enabled and self.active) global.lockEvent(self.id, .lock_shared_obtain);    }    pub inline fn sharedRelease(self: Lock) void {        if (enabled and self.active) global.lockEvent(self.id, .lock_shared_release);    }    pub inline fn markAt(self: Lock, comptime src: std.builtin.SourceLocation) void {        if (enabled and self.active) global.lockMark(self.id, src);    }    pub inline fn setName(self: Lock, name: []const u8) void {        if (enabled and self.active) global.lockName(self.id, name);    }};

Source: lib/tracy/src/root.zig:79

zig
pub const Lock = runtime.Lock;

Audit

Definitions10
Public names10
Members2
Version26.7.0
Revisiondaab053ee433