mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Small renaming in Thread struct
Should be a bit more clear the meaning of the single variables. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
#include "search.h"
|
||||
|
||||
const int MAX_THREADS = 32;
|
||||
const int MAX_ACTIVE_SPLIT_POINTS = 8;
|
||||
const int MAX_SPLITPOINTS_PER_THREAD = 8;
|
||||
|
||||
struct SplitPoint {
|
||||
|
||||
@@ -73,7 +73,7 @@ struct Thread {
|
||||
void timer_loop();
|
||||
void wait_for_stop_or_ponderhit();
|
||||
|
||||
SplitPoint splitPoints[MAX_ACTIVE_SPLIT_POINTS];
|
||||
SplitPoint splitPoints[MAX_SPLITPOINTS_PER_THREAD];
|
||||
MaterialInfoTable materialTable;
|
||||
PawnInfoTable pawnTable;
|
||||
int threadID;
|
||||
@@ -81,8 +81,8 @@ struct Thread {
|
||||
Lock sleepLock;
|
||||
WaitCondition sleepCond;
|
||||
ThreadHandle handle;
|
||||
SplitPoint* volatile splitPoint;
|
||||
volatile int activeSplitPoints;
|
||||
SplitPoint* volatile curSplitPoint;
|
||||
volatile int splitPointsCnt;
|
||||
volatile bool is_searching;
|
||||
volatile bool do_sleep;
|
||||
volatile bool do_exit;
|
||||
|
||||
Reference in New Issue
Block a user