...
Source file
src/runtime/export_windows_test.go
Documentation: runtime
1
2
3
4
5
6
7 package runtime
8
9 import (
10 "internal/runtime/syscall/windows"
11 "unsafe"
12 )
13
14 var (
15 OsYield = osyield
16 TimeBeginPeriodRetValue = &timeBeginPeriodRetValue
17 )
18
19 func NumberOfProcessors() int32 {
20 var info windows.SystemInfo
21 stdcall(_GetSystemInfo, uintptr(unsafe.Pointer(&info)))
22 return int32(info.NumberOfProcessors)
23 }
24
25 func GetCallerFp() uintptr {
26 return getcallerfp()
27 }
28
View as plain text