mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 14:27:45 +00:00
Merge pull request #3705 from Sopel97/fix_tsan_warn
Fix usage of sync_endl instead of endl causing UB mutex unlock.
This commit is contained in:
@@ -720,9 +720,9 @@ namespace Stockfish::Tools
|
|||||||
const auto now_time = now();
|
const auto now_time = now();
|
||||||
|
|
||||||
out
|
out
|
||||||
<< endl
|
<< '\n'
|
||||||
<< 0 << " sfens, "
|
<< 0 << " sfens, "
|
||||||
<< "at " << now_string() << sync_endl;
|
<< "at " << now_string() << endl;
|
||||||
|
|
||||||
last_stats_report_time = now_time;
|
last_stats_report_time = now_time;
|
||||||
|
|
||||||
@@ -735,10 +735,10 @@ namespace Stockfish::Tools
|
|||||||
const TimePoint elapsed = now_time - last_stats_report_time + 1;
|
const TimePoint elapsed = now_time - last_stats_report_time + 1;
|
||||||
|
|
||||||
out
|
out
|
||||||
<< endl
|
<< '\n'
|
||||||
<< done << " sfens, "
|
<< done << " sfens, "
|
||||||
<< new_done * 1000 / elapsed << " sfens/second, "
|
<< new_done * 1000 / elapsed << " sfens/second, "
|
||||||
<< "at " << now_string() << sync_endl;
|
<< "at " << now_string() << endl;
|
||||||
|
|
||||||
last_stats_report_time = now_time;
|
last_stats_report_time = now_time;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user