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 SyncRWMutex ¶
DeadlockRWMutex is the RW version of SyncMutex.
Click to show internal directories.
Click to hide internal directories.