namedmutex

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package namedmutex provides NamedMutex that wraps sync.Mutex and provides namespaced mutex.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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

Jump to

Keyboard shortcuts

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