Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalMutex ¶
type LocalMutex interface { Lock() Unlock() }
LocalMutex is the interface for local mutexes.
type LocalMutexes ¶
type LocalMutexes struct {
// contains filtered or unexported fields
}
LocalMutexes is a store of named mutexes, used to avoid concurrent local operations. For example, GCE project IAM mutation uses a read / conditional-write approach, so we try to avoid making two local concurrent calls to the same project.
var InProcess LocalMutexes
func (*LocalMutexes) Get ¶
func (m *LocalMutexes) Get(key string) LocalMutex
Click to show internal directories.
Click to hide internal directories.