lock

package
v1.3.19 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyLock

type KeyLock struct {
	// contains filtered or unexported fields
}

func NewKeyLock

func NewKeyLock() *KeyLock

func (*KeyLock) Lock

func (l *KeyLock) Lock(key interface{})

func (*KeyLock) Unlock

func (l *KeyLock) Unlock(key interface{})

type LockObj

type LockObj struct {
	Lock *sync.Mutex
	Num  int64
}

Jump to

Keyboard shortcuts

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