MCPcopy
hub / github.com/perkeep/perkeep / Set

Method Set

pkg/client/android/androidx.go:95–104  ·  view source on GitHub ↗
(v int64)

Source from the content-addressed store, hash-verified

93}
94
95func (ni *namedInt) Set(v int64) {
96 ni.Lock()
97 if v == ni.val {
98 ni.Unlock()
99 return
100 }
101 ni.val = v
102 ni.Unlock()
103 Printf("STAT %s %d\n", ni.name, v)
104}
105
106var (
107 statDNSStart = &namedInt{name: "dns_start"}

Callers

nothing calls this directly

Calls 3

LockMethod · 0.80
UnlockMethod · 0.80
PrintfFunction · 0.70

Tested by

no test coverage detected