Move ThreadsManager::exit() to d'tor

And add final touches to this long patch series.

All the series has been verified against regression with
20K games at fast TC.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2012-03-26 07:58:10 +01:00
parent b978eb05dc
commit 32d3a07c67
4 changed files with 61 additions and 65 deletions

View File

@@ -139,7 +139,7 @@ inline void TranspositionTable::refresh(const TTEntry* tte) const {
/// A simple fixed size hash table used to store pawns and material
/// configurations. It is basically just an array of Entry objects.
/// Without cluster concept or overwrite policy.
/// Without cluster concept, overwrite policy nor resizing.
template<class Entry, int HashSize>
struct SimpleHash {
@@ -153,7 +153,7 @@ struct SimpleHash {
{
std::cerr << "Failed to allocate " << HashSize * sizeof(Entry)
<< " bytes for hash table." << std::endl;
exit(EXIT_FAILURE);
::exit(EXIT_FAILURE);
}
memset(entries, 0, HashSize * sizeof(Entry));
}