2022-01-05 18:02:03 +00:00
|
|
|
//go:build !deadlock
|
2020-03-10 20:01:20 +00:00
|
|
|
|
|
|
|
package vault
|
|
|
|
|
|
|
|
import (
|
|
|
|
"sync"
|
|
|
|
)
|
|
|
|
|
|
|
|
// DeadlockMutex is just a sync.Mutex when the build tag `deadlock` is absent.
|
|
|
|
// See its other definition in the corresponding deadlock-build-tag-constrained
|
|
|
|
// file for more details.
|
|
|
|
type DeadlockMutex struct {
|
|
|
|
sync.Mutex
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeadlockRWMutex is the RW version of DeadlockMutex.
|
|
|
|
type DeadlockRWMutex struct {
|
|
|
|
sync.RWMutex
|
|
|
|
}
|