fn RwLocked(comptime T: type) type

Thread-safe async/await RW lock that protects one piece of data. Functions which are waiting for the lock are suspended, and are resumed when the lock is released, in order.

Parameters

T: type,

Fields

lock: RwLock,
locked_data: T,

Functions

fn acquireRead(self: *Self) callconv(.Async) HeldReadLock

No documentation provided.

fn acquireWrite(self: *Self) callconv(.Async) HeldWriteLock

No documentation provided.

fn deinit(self: *Self) void

No documentation provided.

fn init(data: T) Self

No documentation provided.