Use thread specific mutexes instead of a global one.

This is necessary to improve the scalability with high number of cores.

There is no functional change in a single thread mode.

Resolves #281
This commit is contained in:
Joona Kiiski
2015-03-11 21:50:41 +00:00
committed by Joona Kiiski
parent 4b59347194
commit 81c7975dcd
3 changed files with 34 additions and 33 deletions

View File

@@ -151,7 +151,6 @@ struct ThreadPool : public std::vector<Thread*> {
void start_thinking(const Position&, const Search::LimitsType&, Search::StateStackPtr&);
Depth minimumSplitDepth;
Mutex mutex;
ConditionVariable sleepCondition;
TimerThread* timer;
};