beam_mutex (zigler v0.9.1) View Source

general-purpose BEAM mutex wrapped into the zig mutex interface

Link to this section Summary

Functions

initializes the mutex. Note this is failable.

Try to acquire the mutex without blocking. Returns false if the mutex is unavailable.

Acquire the mutex. Will deadlock if the mutex is already held by the calling thread.

Link to this section Functions

initializes the mutex. Note this is failable.

Link to this function

tryLock(self: *Self) bool

View Source

Try to acquire the mutex without blocking. Returns false if the mutex is unavailable.

Acquire the mutex. Will deadlock if the mutex is already held by the calling thread.