mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-04 10:54:42 +00:00
csize_t changes: pinToCpu didn't compile (#12725)
This commit is contained in:
committed by
Andreas Rumpf
parent
015bec6254
commit
1f7871ea1c
@@ -327,7 +327,7 @@ else:
|
||||
var s {.noinit.}: CpuSet
|
||||
cpusetZero(s)
|
||||
cpusetIncl(cpu.cint, s)
|
||||
setAffinity(t.sys, sizeof(s), s)
|
||||
setAffinity(t.sys, csize_t(sizeof(s)), s)
|
||||
|
||||
proc createThread*(t: var Thread[void], tp: proc () {.thread, nimcall.}) =
|
||||
createThread[void](t, tp)
|
||||
|
||||
Reference in New Issue
Block a user