mirror of
https://github.com/slackhq/nebula.git
synced 2025-11-11 00:33:58 +01:00
28 lines
457 B
Go
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
|
|
}
|