mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-07 13:55:17 +00:00
## Description This PR wraps the stdlib sync.(RW)Mutex & godeadlock.(RW)Mutex. This enables using go-deadlock via a build flag instead of using sed to replace sync with godeadlock in all files Closes: #3242
16 lines
218 B
Go
16 lines
218 B
Go
// +build !deadlock
|
|
|
|
package sync
|
|
|
|
import "sync"
|
|
|
|
// A Mutex is a mutual exclusion lock.
|
|
type Mutex struct {
|
|
sync.Mutex
|
|
}
|
|
|
|
// An RWMutex is a reader/writer mutual exclusion lock.
|
|
type RWMutex struct {
|
|
sync.RWMutex
|
|
}
|