csize_t changes: pinToCpu didn't compile (#12725)
This commit is contained in:
parent
015bec6254
commit
1f7871ea1c
1 changed files with 1 additions and 1 deletions
|
|
@ -327,7 +327,7 @@ else:
|
||||||
var s {.noinit.}: CpuSet
|
var s {.noinit.}: CpuSet
|
||||||
cpusetZero(s)
|
cpusetZero(s)
|
||||||
cpusetIncl(cpu.cint, 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.}) =
|
proc createThread*(t: var Thread[void], tp: proc () {.thread, nimcall.}) =
|
||||||
createThread[void](t, tp)
|
createThread[void](t, tp)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue