MCPcopy 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

3import _ "unsafe"
4
5func ProcessorHint() int { return int(runtime_pid()) }
6
7// func pid() uint32 {
8// return getg().m.p.ptr().id

Callers 2

DoMethod · 0.92
DoMethod · 0.92

Calls 1

runtime_pidFunction · 0.85

Tested by

no test coverage detected