Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HashMutex ¶ added in v0.3.0
type HashMutex struct {
// contains filtered or unexported fields
}
HashMutex is a struct that keeps track of a set of mutexes with a given hash. It can be used for making sure only one goroutine gets given the mutex per hash.
func NewHashMutex ¶ added in v0.3.0
func NewHashMutex() *HashMutex
NewHashMutex creates a new Mutex.
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.
Click to show internal directories.
Click to hide internal directories.