mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
Use Thread c'tor to properly init the struct
This is what c'tors are for. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user