X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fthread.h;h=66df55b5473d060f6e6db2f68ebec1ab25455ecd;hb=f89a8f0769d3c61edf0993721b03058a0c463bda;hp=046980d22a1dcc5753b19117ed864c9b03da38ee;hpb=aab5863dd42da0a8e493a2ffaca96319b3d19ebb;p=stockfish diff --git a/src/thread.h b/src/thread.h index 046980d2..66df55b5 100644 --- a/src/thread.h +++ b/src/thread.h @@ -77,6 +77,7 @@ struct SplitPoint { // Shared data Mutex mutex; std::bitset slavesMask; + volatile bool allSlavesSearching; volatile uint64_t nodes; volatile Value alpha; volatile Value bestValue; @@ -91,7 +92,7 @@ struct SplitPoint { struct ThreadBase { - ThreadBase() : exit(false) {} + ThreadBase() : handle(NativeHandle()), exit(false) {} virtual ~ThreadBase() {} virtual void idle_loop() = 0; void notify_one();