github.com/GoWebProd/gip@v0.0.0-20230623090727-b60d41d5d320/rtime/runtime.go (about) 1 package rtime 2 3 import ( 4 "unsafe" 5 ) 6 7 //go:linkname ProcPin runtime.procPin 8 func ProcPin() int 9 10 //go:linkname ProcUnpin runtime.procUnpin 11 func ProcUnpin() 12 13 //go:linkname GoPark runtime.gopark 14 func GoPark(unlockf func(unsafe.Pointer, unsafe.Pointer) bool, lock unsafe.Pointer, reason uint8, traceEv byte, traceskip int) 15 16 //go:linkname GoReady runtime.goready 17 func GoReady(gp unsafe.Pointer, traceskip int)