X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmisc.cpp;fp=src%2Fmisc.cpp;h=b1539ce20ea5d8e9d5d606154932c7f4df89c900;hp=8d3b202d14df71a21dd42b07005fe709e0bba2f4;hb=4c986b050111e4fb96716a75ae2168c005b03df9;hpb=7cb8817ef2194737140410b07997fde9f777ef32 diff --git a/src/misc.cpp b/src/misc.cpp index 8d3b202d..b1539ce2 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -145,7 +145,7 @@ const string engine_info(bool to_uci) { /// Debug functions used mainly to collect run-time statistics -static int64_t hits[2], means[2]; +static std::atomic hits[2], means[2]; void dbg_hit_on(bool b) { ++hits[0]; if (b) ++hits[1]; } void dbg_hit_on(bool c, bool b) { if (c) dbg_hit_on(b); }