MCPcopy Create free account
hub / github.com/eth-easl/dirigent / NewControlPlaneSyncStructure

Function NewControlPlaneSyncStructure

pkg/synchronization/control_plane_sync.go:61–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59}
60
61func NewControlPlaneSyncStructure[K comparable, V any]() *Structure[K, V] {
62 return &Structure[K, V]{
63 InternalMap: make(map[K]V),
64 internalLock: &sync.RWMutex{},
65 }
66}
67
68func (s *Structure[K, V]) Lock() {
69 s.internalLock.Lock()

Callers 5

NewControlPlaneFunction · 0.92
TestRandomPolicyFunction · 0.92
TestRoundRobinFunction · 0.92
NewWorkerNodeFunction · 0.92
NewEmptyWorkerNodeFunction · 0.92

Calls

no outgoing calls

Tested by 2

TestRandomPolicyFunction · 0.74
TestRoundRobinFunction · 0.74