github.com/songzhibin97/go-baseutils@v0.0.2-0.20240302024150-487d8ce9c082/sys/syncx/linkname.go (about) 1 //go:build !race 2 // +build !race 3 4 package syncx 5 6 import ( 7 _ "sync" 8 _ "unsafe" 9 ) 10 11 //go:noescape 12 //go:linkname runtime_registerPoolCleanup sync.runtime_registerPoolCleanup 13 func runtime_registerPoolCleanup(cleanup func()) 14 15 //go:noescape 16 //go:linkname runtime_poolCleanup sync.poolCleanup 17 func runtime_poolCleanup()