Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com> Upstream-commit: 9ca913d0f168d943f6e15f32f52f777732b354a7 Component: engine
14 lines
247 B
Go
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()
|
|
}
|