Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
150
func
(g *gauge) set(v int64) {
151
g.mutex.Lock()
152
defer
g.mutex.Unlock()
153
g.val = v
154
}
155
156
func
(g *gauge) get() int64 {
157
g.mutex.RLock()
Callers
1
performRPCs
Function · 0.80
Calls
2
Lock
Method · 0.45
Unlock
Method · 0.45
Tested by
no test coverage detected