X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fsearch.cpp;h=e0ba79380c3ecbce68f2431ceeb4952e2383f970;hb=d71f7070406bc018e3ca868461d77a90eaebfcbc;hp=ca1fe49c5fb700a2ad5955a0efa80c9d18b13e48;hpb=062ca91db5d9f4b86f0218666b50d3f9456b0ba2;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index ca1fe49c..e0ba7938 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1696,7 +1696,7 @@ void Thread::idle_loop() { if ( sp->allSlavesSearching && sp->slavesMask.count() < MAX_SLAVES_PER_SPLITPOINT) { - mutex.lock(); + allocMutex.lock(); if (can_join(sp)) { @@ -1705,7 +1705,7 @@ void Thread::idle_loop() { searching = true; } - mutex.unlock(); + allocMutex.unlock(); } sp->mutex.unlock();