disable pinToCpu for OSX

This commit is contained in:
Andreas Rumpf 2017-01-07 10:39:20 +01:00
commit a93ca14418

View file

@ -463,6 +463,7 @@ else:
## pins a thread to a `CPU`:idx:. In other words sets a ## pins a thread to a `CPU`:idx:. In other words sets a
## thread's `affinity`:idx:. If you don't know what this means, you ## thread's `affinity`:idx:. If you don't know what this means, you
## shouldn't use this proc. ## shouldn't use this proc.
when not defined(macosx):
var s {.noinit.}: CpuSet var s {.noinit.}: CpuSet
cpusetZero(s) cpusetZero(s)
cpusetIncl(cpu.cint, s) cpusetIncl(cpu.cint, s)