Black Lives Matter. Support the Equal Justice Initiative.

Source file src/runtime/export_windows_test.go

Documentation: runtime

     1  // Copyright 2014 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Export guts for testing.
     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