nebula/mutex.go
Wade Simmons e6eeef785e mutex_debug
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.
2023-05-08 11:17:14 -04:00

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{}
}