mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-25 11:36:51 +08:00
Clarify the behaviour of execute_with_worker[s]
This commit is contained in:
@@ -186,8 +186,7 @@ void ThreadPool::clear() {
|
||||
main()->previousTimeReduction = 1.0;
|
||||
}
|
||||
|
||||
|
||||
void ThreadPool::execute_with_workers(std::function<void(Thread&)> worker)
|
||||
void ThreadPool::execute_with_workers(const std::function<void(Thread&)>& worker)
|
||||
{
|
||||
for(Thread* th : *this)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user