automaxprocs: go.uber.org/automaxprocs/internal/runtime Index | Files

package runtime

import "go.uber.org/automaxprocs/internal/runtime"

Index

Package Files

cpu_quota_linux.go runtime.go

func CPUQuotaToGOMAXPROCS Uses

func CPUQuotaToGOMAXPROCS(minValue int) (int, CPUQuotaStatus, error)

CPUQuotaToGOMAXPROCS converts the CPU quota applied to the calling process to a valid GOMAXPROCS value.

type CPUQuotaStatus Uses

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 return when CPU quota is larger than the min value
    CPUQuotaMinUsed
)

Package runtime imports 2 packages (graph) and is imported by 1 packages. Updated 2018-02-27. Refresh now. Tools for package owners.