b0e927fed5
Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
13 lines
247 B
Go
13 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()
|
|
}
|