# Functions
Lock locks one or more mutexes for writing and calls the given function.
LockRet locks one or more mutexes for writing and calls the given function, returning a value.
LockRetErr locks one or more mutexes for writing and calls the given function, returning a value and an error.
NewMutex returns a new mutex.
NewRWMutex returns a new read-write mutex.
RLock locks one or more mutexes for reading and calls the given function.
RLockRet locks one or more mutexes for reading and calls the given function, returning a value.
RLockRetErr locks one or more mutexes for reading and calls the given function, returning a value and an error.