Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mutex ¶
type Mutex struct {
// contains filtered or unexported fields
}
Mutex is a struct that keeps track of a set of mutexes with a given ID. It can be used for making sure only one goroutine gets given the mutex per ID.
func (*Mutex) Lock ¶
Lock locks the mutex by the given ID. If the mutex is already locked by this ID, Lock blocks until the mutex is available.
Source Files
¶
- multimutex.go
Click to show internal directories.
Click to hide internal directories.