package namedmutex
import "github.com/containerd/stargz-snapshotter/util/namedmutex"
Package namedmutex provides NamedMutex that wraps sync.Mutex and provides namespaced mutex.
Index ¶
Types ¶
type NamedMutex ¶
type NamedMutex struct {
// contains filtered or unexported fields
}
NamedMutex wraps sync.Mutex and provides namespaced mutex.
func (*NamedMutex) Lock ¶
func (nl *NamedMutex) Lock(name string)
Lock locks the mutex of the given name
func (*NamedMutex) Unlock ¶
func (nl *NamedMutex) Unlock(name string)
Unlock unlocks the mutex of the given name
Source Files ¶
- Version
- v0.16.3 (latest)
- Published
- Dec 12, 2024
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 2 weeks ago –
Tools for package owners.