MCPcopy
hub / github.com/prometheus/client_golang / waitForCooldown

Function waitForCooldown

prometheus/histogram.go:1641–1645  ·  view source on GitHub ↗

waitForCooldown returns after the count field in the provided histogramCounts has reached the provided count value.

(count uint64, counts *histogramCounts)

Source from the content-addressed store, hash-verified

1639// waitForCooldown returns after the count field in the provided histogramCounts
1640// has reached the provided count value.
1641func waitForCooldown(count uint64, counts *histogramCounts) {
1642 for count != atomic.LoadUint64(&counts.count) {
1643 runtime.Gosched() // Let observations get work done.
1644 }
1645}
1646
1647// atomicAddFloat adds the provided float atomically to another float
1648// represented by the bit pattern the bits pointer is pointing to.

Callers 5

WriteMethod · 0.85
maybeResetMethod · 0.85
resetMethod · 0.85
maybeWidenZeroBucketMethod · 0.85
doubleBucketWidthMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected