Source file
src/runtime/export_windows_test.go
Documentation: runtime
1
2
3
4
5
6
7 package runtime
8
9 import "unsafe"
10
11 var (
12 TestingWER = &testingWER
13 OsYield = osyield
14 TimeBeginPeriodRetValue = &timeBeginPeriodRetValue
15 )
16
17 func NumberOfProcessors() int32 {
18 var info systeminfo
19 stdcall1(_GetSystemInfo, uintptr(unsafe.Pointer(&info)))
20 return int32(info.dwnumberofprocessors)
21 }
22
23 func LoadLibraryExStatus() (useEx, haveEx, haveFlags bool) {
24 return useLoadLibraryEx, _LoadLibraryExW != nil, _AddDllDirectory != nil
25 }
26
View as plain text