Commit 81d9e2a9 authored by gbalduzz's avatar gbalduzz
Browse files

Revert "Fixed thread affinity assignement."

This reverts commit efedb1ae.
parent efedb1ae
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -63,10 +63,10 @@ void ThreadPool::enlarge(size_t n_threads) {

void ThreadPool::workerLoop(int id) {
  // Set affinity.
  const int shift = master_affinity_.size() * id;
  const int shift = core_count_ * id;
  std::vector<int> affinities;
  for (int x : master_affinity_)
    affinities.push_back((x + shift) % core_count_);
    affinities.push_back(x + shift);

  set_affinity(affinities);