Thread code reformat

Simplify out low level sync stuff (mutex
and friends) and avoid to use them directly
in many functions.

Also some renaming and better comment while
there.

No functional change.
This commit is contained in:
Marco Costalba
2017-08-12 23:58:31 -07:00
parent bdeda52efd
commit df6cb446ea
5 changed files with 88 additions and 113 deletions

View File

@@ -45,7 +45,7 @@ int main(int argc, char* argv[]) {
Pawns::init();
Tablebases::init(Options["SyzygyPath"]);
TT.resize(Options["Hash"]);
Threads.init();
Threads.init(Options["Threads"]);
Search::clear(); // After threads are up
UCI::loop(argc, argv);