Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GamerHack/GamerHack.github.io
/ set_cpu_affinity
Function
set_cpu_affinity
g2all/700/lapse.js:396–398 ·
view source on GitHub ↗
(mask)
Source
from the content-addressed store, hash-verified
394
}
395
396
function
set_cpu_affinity(mask) {
397
sysi(
"cpuset_setaffinity"
, CPU_LEVEL_WHICH, CPU_WHICH_TID, -1, sizeof_cpuset_t_, mask.addr);
398
}
399
400
function
pin_to_core(core) {
401
const
mask =
new
Buffer(sizeof_cpuset_t_);
Callers
1
pin_to_core
Function · 0.85
Calls
1
sysi
Function · 0.70
Tested by
no test coverage detected