- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for goyield_m (0.17 sec)
-
src/runtime/proc.go
// - gvisor.dev/gvisor // - github.com/sagernet/gvisor // // Do not remove or change the type signature. // See go.dev/issue/67401. // //go:linkname goyield func goyield() { checkTimeouts() mcall(goyield_m) } func goyield_m(gp *g) { trace := traceAcquire() pp := gp.m.p.ptr() if trace.ok() { // Trace the event before the transition. It may take a
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 207.5K bytes - Viewed (0) -
src/runtime/sema.go
// the waiter G immediately. // Note that waiter inherits our time slice: this is desirable // to avoid having a highly contended semaphore hog the P // indefinitely. goyield is like Gosched, but it emits a // "preempted" trace event instead and, more importantly, puts // the current G on the local runq instead of the global one. // We only do this in the starving regime (handoff=true), as in
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 19K bytes - Viewed (0)