MCPcopy
hub / github.com/1Panel-dev/KubePi / add

Method add

thirdparty/gotty/server/handler_atomic.go:31–42  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

29}
30
31func (counter *counter) add(n int) int {
32 counter.mutex.Lock()
33 defer counter.mutex.Unlock()
34
35 if counter.duration > 0 {
36 counter.zeroTimer.Stop()
37 }
38 counter.wg.Add(n)
39 counter.connections += n
40
41 return counter.connections
42}
43
44func (counter *counter) done() int {
45 counter.mutex.Lock()

Callers 11

index-lib.jsFile · 0.80
AeFunction · 0.80
DeFunction · 0.80
MeFunction · 0.80
eFunction · 0.80
generateHandleWSMethod · 0.80
main.jsFile · 0.80
installFunction · 0.80
main.jsFile · 0.80
searchFullTextItemsFunction · 0.80
installFunction · 0.80

Calls 1

AddMethod · 0.65

Tested by

no test coverage detected