mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 00:26:33 +08:00
Move pawn and material tables under Thread class
This change allows to remove some quite a bit of code and seems the natural thing to do. Introduced file thread.cpp to move away from search.cpp a lot of threads related stuff. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include "evaluate.h"
|
||||
#include "position.h"
|
||||
#include "thread.h"
|
||||
#include "search.h"
|
||||
#include "ucioption.h"
|
||||
|
||||
#ifdef USE_CALLGRIND
|
||||
@@ -52,9 +53,9 @@ int main(int argc, char* argv[]) {
|
||||
init_bitboards();
|
||||
Position::init_zobrist();
|
||||
Position::init_piece_square_tables();
|
||||
init_eval(1);
|
||||
init_kpk_bitbase();
|
||||
init_threads();
|
||||
init_search();
|
||||
ThreadsMgr.init_threads();
|
||||
|
||||
#ifdef USE_CALLGRIND
|
||||
CALLGRIND_START_INSTRUMENTATION;
|
||||
@@ -81,7 +82,6 @@ int main(int argc, char* argv[]) {
|
||||
<< "[limit = 12] [fen positions file = default] "
|
||||
<< "[depth, time, perft or node limited = depth]" << endl;
|
||||
|
||||
exit_threads();
|
||||
quit_eval();
|
||||
ThreadsMgr.exit_threads();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user