mutexes

package
v1.29.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL