locking

package
v1.6.0-1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 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