MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / setGlobalRenderContext

Function setGlobalRenderContext

tsunami/engine/globalctx.go:44–49  ·  view source on GitHub ↗
(vc *RenderContextImpl)

Source from the content-addressed store, hash-verified

42}
43
44func setGlobalRenderContext(vc *RenderContextImpl) {
45 globalCtxMutex.Lock()
46 defer globalCtxMutex.Unlock()
47 globalRenderContext = vc
48 globalRenderGoId = goid.Get()
49}
50
51func clearGlobalRenderContext() {
52 globalCtxMutex.Lock()

Callers 1

withGlobalRenderCtxFunction · 0.85

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected