tiny.tracy.Lock
Defined in tiny.tracy.
API (11)
Actions
Public operations.
Fields and members
Public fields and members.
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
| Definitions | 10 |
|---|---|
| Public names | 10 |
| Members | 2 |
| Version | 26.7.0 |
| Revision | daab053ee433 |