scheduler_gccgo.go 247 B

12345678910111213
  1. // +build gccgo
  2. package ioutils
  3. import (
  4. "runtime"
  5. )
  6. func callSchedulerIfNecessary() {
  7. //allow or force Go scheduler to switch context, without explicitly
  8. //forcing this will make it hang when using gccgo implementation
  9. runtime.Gosched()
  10. }