waitForCooldown returns after the count field in the provided histogramCounts has reached the provided count value.
(count uint64, counts *histogramCounts)
| 1639 | // waitForCooldown returns after the count field in the provided histogramCounts |
| 1640 | // has reached the provided count value. |
| 1641 | func 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. |
no outgoing calls
no test coverage detected