aboutsummaryrefslogtreecommitdiff
path: root/nix/libutil/affinity.hh
diff options
context:
space:
mode:
Diffstat (limited to 'nix/libutil/affinity.hh')
-rw-r--r--nix/libutil/affinity.hh9
1 files changed, 9 insertions, 0 deletions
diff --git a/nix/libutil/affinity.hh b/nix/libutil/affinity.hh
new file mode 100644
index 0000000000..c1bd28e136
--- /dev/null
+++ b/nix/libutil/affinity.hh
@@ -0,0 +1,9 @@
+#pragma once
+
+namespace nix {
+
+void setAffinityTo(int cpu);
+int lockToCurrentCPU();
+void restoreAffinity();
+
+}