summaryrefslogtreecommitdiffhomepage
path: root/pkg/sync/goyield_unsafe.go
blob: 8639bb64e8970bfbcd92d1389175f5b013612079 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2020 The gVisor Authors.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build go1.14 && !go1.18
// +build go1.14,!go1.18

// Check go:linkname function signatures when updating Go version.

package sync

import (
	_ "unsafe" // for go:linkname
)

//go:linkname goyield runtime.goyield
func goyield()