MCPcopy
hub / github.com/grpc/grpc-go / set

Method set

interop/stress/client/main.go:150–154  ·  view source on GitHub ↗
(v int64)

Source from the content-addressed store, hash-verified

148}
149
150func (g *gauge) set(v int64) {
151 g.mutex.Lock()
152 defer g.mutex.Unlock()
153 g.val = v
154}
155
156func (g *gauge) get() int64 {
157 g.mutex.RLock()

Callers 1

performRPCsFunction · 0.80

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected