Merge commit '60351b9df901ff5278f208a9cf3a40059ff54832' into cluster

This is the last commit before there are more conflicts.
This commit is contained in:
Steinar H. Gunderson
2025-12-25 16:56:54 +01:00
30 changed files with 1840 additions and 917 deletions
+7
View File
@@ -104,6 +104,8 @@ void Thread::run_custom_job(std::function<void()> f) {
cv.notify_one();
}
void Thread::ensure_network_replicated() { worker->ensure_network_replicated(); }
// Thread gets parked here, blocked on the condition variable
// when the thread has no work to do.
@@ -405,4 +407,9 @@ std::vector<size_t> ThreadPool::get_bound_thread_count_by_numa_node() const {
return counts;
}
void ThreadPool::ensure_network_replicated() {
for (auto&& th : threads)
th->ensure_network_replicated();
}
} // namespace Stockfish