MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / stopRunner

Method stopRunner

pkg/controller/rtctrl/runner.go:84–96  ·  view source on GitHub ↗

stopRunner

()

Source from the content-addressed store, hash-verified

82
83// stopRunner
84func (info *RuntimeInfo) stopRunner() {
85 info.runtimeWaitGroup.Wait()
86
87 info.invokeLock.Lock()
88 defer info.invokeLock.Unlock()
89
90 info.runnerConn.Close()
91 // suspect or check: https://github.com/golang/go/issues/28446
92 if info.State == RuntimeStateMerged || info.State == RuntimeStateReclaiming {
93 return
94 }
95 info.SetState(RuntimeStateClosed)
96}
97
98// runnerUpdate
99func (info *RuntimeInfo) runnerUpdate() {

Callers 1

recvRunnerInfoLoopMethod · 0.95

Calls 4

SetStateMethod · 0.95
LockMethod · 0.80
WaitMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected