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