locking

package
v1.5.2-1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	EnvDeadlockDetectionEnabled = "DEADLOCK_DETECTION_ENABLED"
	EnvDeadlockTimeoutSeconds   = "DEADLOCK_TIMEOUT_SECONDS"
	EnvExitOnDeadlock           = "DEADLOCK_EXIT"
	EnvDisableLockOrder         = "DEADLOCK_DISABLE_LOCK_ORDER"
)

Variables

This section is empty.

Functions

func GetDeadlockTimeoutSeconds

func GetDeadlockTimeoutSeconds() int

func IsDeadlockDetected

func IsDeadlockDetected() bool

func IsTrackingEnabled

func IsTrackingEnabled() bool

Types

type Mutex

type Mutex struct {
	godeadlock.Mutex
}

type RWMutex

type RWMutex struct {
	godeadlock.RWMutex
}

Jump to

Keyboard shortcuts

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