lockmap

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 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 LockMap

type LockMap struct {
	sync.Mutex
	// contains filtered or unexported fields
}

LockMap used to lock on entries

func NewLockMap

func NewLockMap() *LockMap

NewLockMap returns a new lock map

func (*LockMap) LockEntry

func (lm *LockMap) LockEntry(entry string)

LockEntry acquires a lock associated with the specific entry

func (*LockMap) UnlockEntry

func (lm *LockMap) UnlockEntry(entry string)

UnlockEntry release the lock associated with the specific entry

Jump to

Keyboard shortcuts

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