☰
Debian Codegraph
@
0.22.0+ds1-1
0.21.0+ds1-1
/
/
cpu_windows.go
☽
☼
cpu_windows.go
code
plain
raw
symbols
SCIP
Expat
2017 Nathan Sweet; 2018-2019 Cloudflare; 2019 Cilium
debian/copyright
1
package
ebpf
2
3
import
(
4
"sync"
5
6
"golang.org/x/sys/windows"
7
)
8
9
var
possibleCPU = sync.
OnceValues
(
func
() (
int
,
error
) {
10
return
int(windows.
GetMaximumProcessorCount
(windows.
ALL_PROCESSOR_GROUPS
)),
nil
11
})