1 // Copyright 2023 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
7 // SchedReqs is a set of constraints on what the scheduling
8 // context must look like.
9 type SchedReqs struct {
15 // Constraint represents a various presence requirements.
19 MustNotHave Constraint = iota
24 // UserGoReqs is a common requirement among events that are running
25 // or are close to running user code.
26 var UserGoReqs = SchedReqs{Thread: MustHave, Proc: MustHave, Goroutine: MustHave}