github.com/GoWebProd/gip@v0.0.0-20230623090727-b60d41d5d320/futex/futex.go (about) 1 package futex 2 3 import ( 4 _ "unsafe" 5 ) 6 7 //go:linkname Sleep runtime.futexsleep 8 func Sleep(addr *uint32, value uint32, ns int64) 9 10 //go:linkname Wake runtime.futexwakeup 11 func Wake(addr *uint32, count uint32)