X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fbenchmark.cpp;h=5737a4d85a3debeb60c62db5c00d9733e0ca7b70;hb=9742fb10fd83e82ad760e4cac5cef3d6dff670ed;hp=70bcafa9cfcf0a77a9cfdf7638effdf08d910f88;hpb=86f04dbcc08e52864c1136d713996e3a0c8d2610;p=stockfish diff --git a/src/benchmark.cpp b/src/benchmark.cpp index 70bcafa9..5737a4d8 100644 --- a/src/benchmark.cpp +++ b/src/benchmark.cpp @@ -1,7 +1,7 @@ /* Stockfish, a UCI chess playing engine derived from Glaurung 2.1 Copyright (C) 2004-2008 Tord Romstad (Glaurung author) - Copyright (C) 2008-2015 Marco Costalba, Joona Kiiski, Tord Romstad + Copyright (C) 2008-2016 Marco Costalba, Joona Kiiski, Tord Romstad Stockfish is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -75,7 +75,7 @@ const vector Defaults = { "8/8/3P3k/8/1p6/8/1P6/1K3n2 b - - 0 1", // Nd2 - draw // 7-man positions - "8/R7/2q5/8/6k1/8/1P5p/K6R w - - 0 124", // Draw + "8/R7/2q5/8/6k1/8/1P5p/K6R w - - 0 124" // Draw }; } // namespace @@ -158,7 +158,7 @@ void benchmark(const Position& current, istream& is) { Search::StateStackPtr st; limits.startTime = now(); Threads.start_thinking(pos, limits, st); - Threads.main()->join(); + Threads.main()->wait_for_search_finished(); nodes += Threads.nodes_searched(); } }