Function lock [src]
Acquires the mutex, blocking the caller's thread until it can.
It is undefined behavior if the mutex is already held by the caller's thread.
Once acquired, call unlock() on the Mutex to release it.
Prototype
pub fn lock(self: *Mutex) void
Parameters
self: *Mutex
Source
pub fn lock(self: *Mutex) void {
self.impl.lock();
}