cxcputhread

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//Support up to 65534 cpu cores
	//because of the way other functions wraps it,
	//"0" value denotes or master
	CPUThread uint16
)

Functions

func CPUHash added in v0.0.2

func CPUHash(k []byte) uint16

hash based on fnv1a32, getting hashed cpu id

func IsCurrentCPUID added in v0.0.4

func IsCurrentCPUID(id uint16) uint8

func SetCPUAffinity

func SetCPUAffinity(cpu uint16) error

cpu core 0 = 1 cpu core 1 = 2

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL