DoxigAlpha

unlock

Releases the Mutex which was previously acquired with lock or tryLock.

It is undefined behavior to unlock from a different thread that it was locked from.

Function parameters

Parameters

#
r:*Recursive

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, }

Source

Implementation

#