MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / LockRunLock

Method LockRunLock

pkg/blockcontroller/shellcontroller.go:246–252  ·  view source on GitHub ↗

[Continue with all other methods, replacing bc with sc throughout...]

()

Source from the content-addressed store, hash-verified

244// [Continue with all other methods, replacing bc with sc throughout...]
245
246func (sc *ShellController) LockRunLock() bool {
247 rtn := sc.RunLock.CompareAndSwap(false, true)
248 if rtn {
249 log.Printf("block %q run() lock\n", sc.BlockId)
250 }
251 return rtn
252}
253
254func (sc *ShellController) UnlockRunLock() {
255 sc.RunLock.Store(false)

Callers 1

runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected