nebula/mutex.go
Wade Simmons 4c89b3c6a3 cleanup
2023-08-21 13:09:25 -04:00

28 lines
457 B
Go

//go:build !mutex_debug
// +build !mutex_debug
package nebula
import (
"sync"
)
type syncRWMutex = sync.RWMutex
type mutexKeyType string
const (
mutexKeyTypeHostMap mutexKeyType = "hostmap"
mutexKeyTypeHostInfo = "hostinfo"
mutexKeyTypeHandshakeManager = "handshake-manager"
)
func newSyncRWMutex(mutexKey) syncRWMutex {
return sync.RWMutex{}
}
type mutexKey struct {
Type mutexKeyType
ID uint32
}