package windows /* #cgo CFLAGS: -mnop-fun-dllimport #include DWORD agetthread() { return GetCurrentThreadId(); } */ import "C" func GetThread() uint32 { return uint32(C.agetthread()) }