aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/affinity.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/affinity.hh')
-rw-r--r--src/libutil/affinity.hh9
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();
+
+}