locking

package
v1.14.5 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MPL-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 DeadlockMutex

type DeadlockMutex struct {
	deadlock.Mutex
}

DeadlockMutex (used when requested via config option `detact_deadlocks`), behaves like a sync.Mutex but does periodic checking to see if outstanding locks and requests look like a deadlock. If it finds a deadlock candidate it will output it prefixed with "POTENTIAL DEADLOCK", as described at https://github.com/sasha-s/go-deadlock

type DeadlockRWMutex

type DeadlockRWMutex struct {
	deadlock.RWMutex
}

DeadlockRWMutex is the RW version of DeadlockMutex.

type Mutex

type Mutex interface {
	Lock()
	Unlock()
}

Common mutex interface to allow either built-in or imported deadlock use

type RWMutex

type RWMutex interface {
	Lock()
	RLock()
	RLocker() sync.Locker
	RUnlock()
	Unlock()
}

Common r/w mutex interface to allow either built-in or imported deadlock use

type SyncMutex

type SyncMutex struct {
	sync.Mutex
}

Regular sync/mutex.

type SyncRWMutex

type SyncRWMutex struct {
	sync.RWMutex
}

DeadlockRWMutex is the RW version of SyncMutex.

Jump to

Keyboard shortcuts

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