]> git.sesse.net Git - stockfish/commit
Introduce ThreadsManager class
authorMarco Costalba <mcostalba@gmail.com>
Sat, 13 Feb 2010 12:38:32 +0000 (13:38 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 14 Feb 2010 11:53:27 +0000 (12:53 +0100)
commit2b740f549534aff950330eff0f4806da71c76726
tree7b0260c95ec0a33e5600d191aa7326f5b9ad2498
parentfb5ba1d32912a3b5fc405511fc34d504df5393b9
Introduce ThreadsManager class

Main aim of this patch is to consolidate all the thread related stuff
behind a single class interface so to avoid messing with global flags
and having thread code scattered among non-thread related stuff.

Another advantage is that now access to thread's variables is
more controlled, in particular we can differentiate between
read and write accesses by the mean of different interfaces, it
is so simpler to understand how a function is related to threads.

Lastly this rewrite is the base for future code consolidations and
semplifications that are easier now that we have only one thread's
access point.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/search.cpp
src/thread.h