]> git.sesse.net Git - stockfish/blobdiff - src/thread.h
Rename stop_threads() to exit_threads()
[stockfish] / src / thread.h
index d8eee1c126de09aaec29c999783a245caa11f329..14924bf2280662be82523e81e94d09a7136d1c16 100644 (file)
@@ -26,6 +26,8 @@
 //// Includes
 ////
 
+#include <cstring>
+
 #include "lock.h"
 #include "movepick.h"
 #include "position.h"
@@ -64,6 +66,9 @@ struct SplitPoint {
 
 
 struct Thread {
+
+  Thread() { memset(this, 0, sizeof(Thread)); }
+
   SplitPoint *splitPoint;
   volatile int activeSplitPoints;
   uint64_t nodes;