MCPcopy Index your code
hub / github.com/php/frankenphp / ProbeCPUs

Function ProbeCPUs

internal/cpu/cpu_windows.go:8–15  ·  view source on GitHub ↗

ProbeCPUs fallback that always determines that the CPU limits are not reached

(probeTime time.Duration, _ float64, abort chan struct{})

Source from the content-addressed store, hash-verified

6
7// ProbeCPUs fallback that always determines that the CPU limits are not reached
8func ProbeCPUs(probeTime time.Duration, _ float64, abort chan struct{}) bool {
9 select {
10 case <-abort:
11 return false
12 case <-time.After(probeTime):
13 return true
14 }
15}

Callers 2

scaleWorkerThreadFunction · 0.92
scaleRegularThreadFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected