X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fthread.h;h=66acf6f80808ab5ff6638f555a5aaff4bab1d6a6;hb=d72e862a5b4bc65f04c4f40f9005042d0e9eee9a;hp=afbf226632cf78505729962609c01ae01cff5275;hpb=55f0d6377f7828fb43428ed643a99780053dd589;p=stockfish diff --git a/src/thread.h b/src/thread.h index afbf2266..66acf6f8 100644 --- a/src/thread.h +++ b/src/thread.h @@ -1,7 +1,7 @@ /* Stockfish, a UCI chess playing engine derived from Glaurung 2.1 Copyright (C) 2004-2008 Tord Romstad (Glaurung author) - Copyright (C) 2008-2009 Marco Costalba + Copyright (C) 2008-2010 Marco Costalba, Joona Kiiski, Tord Romstad Stockfish is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -51,11 +51,10 @@ struct SplitPoint { // Const data after splitPoint has been setup SplitPoint* parent; const Position* pos; - bool pvNode; Depth depth; - bool mateThreat; + bool pvNode, mateThreat; Value beta; - int ply, master, slaves[MAX_THREADS]; + int ply, master; SearchStack sstack[MAX_THREADS][PLY_MAX_PLUS_2]; // Const pointers to shared data @@ -67,8 +66,8 @@ struct SplitPoint { volatile Value alpha; volatile Value bestValue; volatile int moves; - volatile int cpus; volatile bool stopRequest; + volatile int slaves[MAX_THREADS]; }; // ThreadState type is used to represent thread's current state