MCPcopy
hub / github.com/wavetermdev/waveterm / getBlockResyncMutex

Function getBlockResyncMutex

pkg/blockcontroller/blockcontroller.go:84–88  ·  view source on GitHub ↗
(blockId string)

Source from the content-addressed store, hash-verified

82)
83
84func getBlockResyncMutex(blockId string) *sync.Mutex {
85 return blockResyncMutexMap.GetOrCreate(blockId, func() *sync.Mutex {
86 return &sync.Mutex{}
87 })
88}
89
90// Registry operations
91func getController(blockId string) Controller {

Callers 1

ResyncControllerFunction · 0.85

Calls 1

GetOrCreateMethod · 0.80

Tested by

no test coverage detected