lock

package
v2.5.6 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: Apache-2.0 Imports: 7 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[K comparable] struct {
	// contains filtered or unexported fields
}

func NewKeyLock

func NewKeyLock[K comparable]() *KeyLock[K]

func (*KeyLock[K]) Lock

func (k *KeyLock[K]) Lock(key K)

func (*KeyLock[K]) RLock

func (k *KeyLock[K]) RLock(key K)

func (*KeyLock[K]) RUnlock

func (k *KeyLock[K]) RUnlock(lockedKey K)

func (*KeyLock[K]) Unlock

func (k *KeyLock[K]) Unlock(lockedKey K)

type MetricsLockManager

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

type MetricsRWMutex

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

func (*MetricsRWMutex) Lock

func (mRWLock *MetricsRWMutex) Lock(source string)

func (*MetricsRWMutex) RLock

func (mRWLock *MetricsRWMutex) RLock(source string)

func (*MetricsRWMutex) RUnLock

func (mRWLock *MetricsRWMutex) RUnLock(source string)

func (*MetricsRWMutex) UnLock

func (mRWLock *MetricsRWMutex) UnLock(source string)

type Mutex

type Mutex = sync.Mutex

use `sync.Mutex` for production build

type RWMutex

type RWMutex = sync.RWMutex

use `sync.RWMutex` for production build

type RefLock

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

Jump to

Keyboard shortcuts

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