about summary refs log tree commit diff
path: root/third_party/nix/src/libutil/affinity.hh
blob: 5e5ef9b0de0d07a5381daf161d3ed8d85e2b8994 (plain) (blame)
1
2
3
4
5
6
7
8
9
#pragma once

namespace nix {

void setAffinityTo(int cpu);
int lockToCurrentCPU();
void restoreAffinity();

}  // namespace nix