github.com/primecitizens/pcz/std@v0.2.1/builtin/go/sched.go (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright 2023 The Prime Citizens
     3  //
     4  // Copyright 2014 The Go Authors. All rights reserved.
     5  // Use of this source code is governed by a BSD-style
     6  // license that can be found in the LICENSE file.
     7  
     8  package stdgo
     9  
    10  // Gosched yields the processor, allowing other goroutines to run. It does not
    11  // suspend the current goroutine, so execution resumes automatically.
    12  //
    13  // If guarded is true, also checks for forbidden states and opts out of the
    14  // yield in those cases.
    15  //
    16  //go:nosplit
    17  func Sched(guarded bool) {
    18  	// TODO: gopark
    19  }