X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsyzygy%2Ftbprobe.cpp;h=60979a5687409a41001e93332f0019ffcae3e330;hp=d0b59f056a9c02119c7ca3ce94e3c6a7dd1341bd;hb=e917bd59b1e317c6b48dc676473359fdfb86d9d4;hpb=e8ffca3eb49f607d361688c41c9ae9b3b3de4b80;ds=sidebyside diff --git a/src/syzygy/tbprobe.cpp b/src/syzygy/tbprobe.cpp index d0b59f05..60979a56 100644 --- a/src/syzygy/tbprobe.cpp +++ b/src/syzygy/tbprobe.cpp @@ -1107,10 +1107,10 @@ void* mapped(TBTable& e, const Position& pos) { static Mutex mutex; - // Use 'aquire' to avoid a thread reads 'ready' == true while another is - // still working, this could happen due to compiler reordering. + // Use 'acquire' to avoid a thread reading 'ready' == true while + // another is still working. (compiler reordering may cause this). if (e.ready.load(std::memory_order_acquire)) - return e.baseAddress; // Could be nullptr if file does not exsist + return e.baseAddress; // Could be nullptr if file does not exist std::unique_lock lk(mutex);