Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/egonelbre/exp
/ ProcessorHint
Function
ProcessorHint
sync2/runtime2/pid.go:5–5 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
3
import
_
"unsafe"
4
5
func
ProcessorHint() int {
return
int(runtime_pid()) }
6
7
// func pid() uint32 {
8
// return getg().m.p.ptr().id
Callers
2
Do
Method · 0.92
Do
Method · 0.92
Calls
1
runtime_pid
Function · 0.85
Tested by
no test coverage detected