diff options
Diffstat (limited to 'src/libutil/affinity.hh')
-rw-r--r-- | src/libutil/affinity.hh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libutil/affinity.hh b/src/libutil/affinity.hh new file mode 100644 index 000000000..c1bd28e13 --- /dev/null +++ b/src/libutil/affinity.hh @@ -0,0 +1,9 @@ +#pragma once + +namespace nix { + +void setAffinityTo(int cpu); +int lockToCurrentCPU(); +void restoreAffinity(); + +} |