File: goyield_go113_unsafe.go

package info (click to toggle)
golang-inet-netstack 0.0~git20211120.8aa80cf2-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 4,512 kB
  • sloc: asm: 900; makefile: 4
file content (18 lines) | stat: -rw-r--r-- 320 bytes parent folder | download | duplicates (4)
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.13 && !go1.14
// +build go1.13,!go1.14

package sync

import (
	"runtime"
)

func goyield() {
	// goyield is not available until Go 1.14.
	runtime.Gosched()
}