Fix usage of sync_endl instead of endl causing UB mutex unlock.

This commit is contained in:
Tomasz Sobczyk
2021-09-17 09:36:27 +02:00
parent f2dbb3f6c8
commit b165fa0e96
+4 -4
View File
@@ -715,9 +715,9 @@ namespace Stockfish::Tools
const auto now_time = now();
out
<< endl
<< '\n'
<< 0 << " sfens, "
<< "at " << now_string() << sync_endl;
<< "at " << now_string() << endl;
last_stats_report_time = now_time;
@@ -730,10 +730,10 @@ namespace Stockfish::Tools
const TimePoint elapsed = now_time - last_stats_report_time + 1;
out
<< endl
<< '\n'
<< done << " sfens, "
<< new_done * 1000 / elapsed << " sfens/second, "
<< "at " << now_string() << sync_endl;
<< "at " << now_string() << endl;
last_stats_report_time = now_time;