]> git.sesse.net Git - stockfish/blobdiff - src/syzygy/tbprobe.cpp
Changes identified in RENAME/REFORMATTING thread (#1861)
[stockfish] / src / syzygy / tbprobe.cpp
index d0b59f056a9c02119c7ca3ce94e3c6a7dd1341bd..60979a5687409a41001e93332f0019ffcae3e330 100644 (file)
@@ -1107,10 +1107,10 @@ void* mapped(TBTable<Type>& e, const Position& pos) {
 
     static Mutex mutex;
 
 
     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))
     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<Mutex> lk(mutex);
 
 
     std::unique_lock<Mutex> lk(mutex);