sync

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2025 License: GPL-3.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKeyRWMutex

func NewKeyRWMutex() *keyRWMutex

NewKeyRWMutex returns a new instance of keyRWMutex

Types

type KeyRWMutexHandler

type KeyRWMutexHandler interface {
	Lock(key string)
	Unlock(key string)
	RLock(key string)
	RUnlock(key string)
	IsInterfaceNil() bool
}

KeyRWMutexHandler is a mutex that can be used to lock/unlock a resource identified by a key

Jump to

Keyboard shortcuts

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