returned back scheduler comment line

This commit is contained in:
ipriver 2020-09-10 13:06:15 +03:00
parent 625fd4c333
commit e45c8ac587
1 changed files with 1 additions and 0 deletions

View File

@ -12,6 +12,7 @@ import (
// GOMAXPROCS sets the maximum number of CPUs that can be executing
// simultaneously and returns the previous setting. It defaults to
// the value of runtime.NumCPU. If n < 1, it does not change the current setting.
// This call will go away when the scheduler improves.
func GOMAXPROCS(n int) int {
if GOARCH == "wasm" && n > 1 {
n = 1 // WebAssembly has no threads yet, so only one CPU is possible.