X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.h;h=782694ad7d25607e8161b1be8ce9803022222332;hp=87b78136f5c7851b992327cdc03d65205c7becc2;hb=c35c18a7054d55cb1b4a8c9e27eaf0ad7c044bcf;hpb=a4a0ffce711962c0b04b35998c3c06491be373bf diff --git a/src/thread.h b/src/thread.h index 87b78136..782694ad 100644 --- a/src/thread.h +++ b/src/thread.h @@ -54,7 +54,7 @@ struct SplitPoint { Depth depth; bool pvNode, mateThreat; Value beta; - int ply, master, slaves[MAX_THREADS]; + int ply; SearchStack sstack[MAX_THREADS][PLY_MAX_PLUS_2]; // Const pointers to shared data @@ -65,9 +65,9 @@ struct SplitPoint { Lock lock; volatile Value alpha; volatile Value bestValue; - volatile int moves; - volatile int cpus; + volatile int moveCount; volatile bool stopRequest; + volatile int slaves[MAX_THREADS]; }; // ThreadState type is used to represent thread's current state @@ -83,7 +83,7 @@ enum ThreadState }; struct Thread { - SplitPoint* splitPoint; + SplitPoint* volatile splitPoint; volatile int activeSplitPoints; uint64_t nodes; uint64_t betaCutOffs[2];