Loading src/parallel/stdthread/thread_pool/thread_pool.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -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); Loading Loading
src/parallel/stdthread/thread_pool/thread_pool.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -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); Loading