X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=54a9ec878c44f5b617a30fbc85280de160f49628;hp=8037e6e74f29300065618b16a435e29201a9488e;hb=613dc66c12b9bf357ae38129fb745dd8c2c035b1;hpb=3e2591d83c285597a7400c79b61ab9dc38875163 diff --git a/src/search.cpp b/src/search.cpp index 8037e6e7..54a9ec87 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1622,6 +1622,7 @@ void Thread::idle_loop() { else assert(false); + spinlock.acquire(); assert(searching); searching = false; @@ -1633,6 +1634,7 @@ void Thread::idle_loop() { // After releasing the lock we can't access any SplitPoint related data // in a safe way because it could have been released under our feet by // the sp master. + spinlock.release(); sp->spinlock.release(); // Try to late join to another split point if none of its slaves has