Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenSN-Library/OpenSN-Library
/ GetCPUCoreIndex
Function
GetCPUCoreIndex
daemon/pkg/module/instance_module.go:36–42 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
34
)
35
36
func
GetCPUCoreIndex() int {
37
cpuCoreMutex.Lock()
38
defer
cpuCoreMutex.Unlock()
39
ret := (cpuCoreInex + 1) % key.SelfNode.CPUCore
40
cpuCoreInex = ret
41
return
ret
42
}
43
44
func
Max(a, b int64) int64 {
45
if
a > b {
Callers
1
CreateContainer
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected