github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/sync/goyield_unsafe.go (about) 1 // Copyright 2020 The gVisor Authors. 2 // 3 // Use of this source code is governed by a BSD-style 4 // license that can be found in the LICENSE file. 5 6 // +build go1.14 7 // +build !go1.18 8 9 // Check go:linkname function signatures when updating Go version. 10 11 package sync 12 13 import ( 14 _ "unsafe" // for go:linkname 15 ) 16 17 //go:linkname goyield runtime.goyield 18 func goyield()