package runtime
import "go.uber.org/automaxprocs/internal/runtime"
Index ¶
Types ¶
type CPUQuotaStatus ¶
type CPUQuotaStatus int
CPUQuotaStatus presents the status of how CPU quota is used
const ( // CPUQuotaUndefined is returned when CPU quota is undefined CPUQuotaUndefined CPUQuotaStatus = iota // CPUQuotaUsed is returned when a valid CPU quota can be used CPUQuotaUsed // CPUQuotaMinUsed is returned when CPU quota is smaller than the min value CPUQuotaMinUsed )
func CPUQuotaToGOMAXPROCS ¶
func CPUQuotaToGOMAXPROCS(minValue int) (int, CPUQuotaStatus, error)
CPUQuotaToGOMAXPROCS converts the CPU quota applied to the calling process to a valid GOMAXPROCS value.
Source Files ¶
cpu_quota_linux.go runtime.go
- Version
- v1.5.3
- Published
- Jul 19, 2023
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 2 days ago –
Tools for package owners.