github.com/songzhibin97/gkit@v1.2.13/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()