☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
libgo
/
go
/
runtime
/
testdata
/
testprogcgo
/
windows
/
win.go
☽
☼
libgo/go/runtime/testdata/testprogcgo/windows/win.go
code
plain
raw
1
package windows
2
3
/*
4
#cgo amd64 386 CFLAGS: -mnop-fun-dllimport
5
6
#include <windows.h>
7
8
DWORD agetthread() {
9
return GetCurrentThreadId();
10
}
11
*/
12
import "C"
13
14
func GetThread() uint32 {
15
return uint32(C.agetthread())
16
}