DoxigAlpha

Recursive

Fields of this type

Fields

#
thread_id:std.Thread.Id
lock_count:usize

Acquires the `Mutex` without blocking the caller's thread.

Functions

#
tryLock
Acquires the `Mutex` without blocking the caller's thread.
lock
Acquires the `Mutex`, blocking the current thread while the mutex is
unlock
Releases the `Mutex` which was previously acquired with `lock` or `tryLock`.

= .{ .mutex = .{}, .thread_id = invalid_thread_id, .lock_count = 0, }

Values

#
init
= .{ .mutex = .{}, .thread_id = invalid_thread_id, .lock_count = 0, }