Files
virtual-kubelet/vendor/github.com/hyperhq/hypercli/pkg/ioutils/scheduler_gccgo.go
2017-12-05 17:53:58 -06:00

14 lines
247 B
Go

// +build gccgo
package ioutils
import (
"runtime"
)
func callSchedulerIfNecessary() {
//allow or force Go scheduler to switch context, without explicitly
//forcing this will make it hang when using gccgo implementation
runtime.Gosched()
}