mirror of
https://github.com/slackhq/nebula.git
synced 2025-11-11 08:13:57 +01:00
experimental test to see if we can have a test mode that verifies mutexes lock in the order we want, while having no hit on production performance. Since this uses a build tag, it should all compile out during the build process and be a no-op unless the tag is set.
15 lines
189 B
Go
15 lines
189 B
Go
//go:build !mutex_debug
|
|
// +build !mutex_debug
|
|
|
|
package nebula
|
|
|
|
import (
|
|
"sync"
|
|
)
|
|
|
|
type syncRWMutex = sync.RWMutex
|
|
|
|
func newSyncRWMutex(t ...string) syncRWMutex {
|
|
return sync.RWMutex{}
|
|
}
|