mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Move all enum types definitions to types.h
Cleanup headers while there. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
18
src/thread.h
18
src/thread.h
@@ -17,15 +17,9 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#if !defined(THREAD_H_INCLUDED)
|
||||
#define THREAD_H_INCLUDED
|
||||
|
||||
|
||||
////
|
||||
//// Includes
|
||||
////
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include "lock.h"
|
||||
@@ -33,19 +27,9 @@
|
||||
#include "position.h"
|
||||
#include "search.h"
|
||||
|
||||
|
||||
////
|
||||
//// Constants and variables
|
||||
////
|
||||
|
||||
const int MAX_THREADS = 16;
|
||||
const int MAX_ACTIVE_SPLIT_POINTS = 8;
|
||||
|
||||
|
||||
////
|
||||
//// Types
|
||||
////
|
||||
|
||||
struct SplitPoint {
|
||||
|
||||
// Const data after splitPoint has been setup
|
||||
@@ -73,7 +57,6 @@ struct SplitPoint {
|
||||
};
|
||||
|
||||
// ThreadState type is used to represent thread's current state
|
||||
|
||||
enum ThreadState
|
||||
{
|
||||
THREAD_INITIALIZING, // thread is initializing itself
|
||||
@@ -91,5 +74,4 @@ struct Thread {
|
||||
SplitPoint splitPoints[MAX_ACTIVE_SPLIT_POINTS];
|
||||
};
|
||||
|
||||
|
||||
#endif // !defined(THREAD_H_INCLUDED)
|
||||
|
||||
Reference in New Issue
Block a user