]> git.sesse.net Git - stockfish/blobdiff - src/material.h
Material: lockless per-thread maps
[stockfish] / src / material.h
index 7d5c3ce1e3f5c215fe27d660ea011e816addff2a..4597295814240e0103c72d549c4734e60fafc4d0 100644 (file)
@@ -1,13 +1,14 @@
 /*
-  Glaurung, a UCI chess playing engine.
-  Copyright (C) 2004-2008 Tord Romstad
+  Stockfish, a UCI chess playing engine derived from Glaurung 2.1
+  Copyright (C) 2004-2008 Tord Romstad (Glaurung author)
+  Copyright (C) 2008 Marco Costalba
 
-  Glaurung is free software: you can redistribute it and/or modify
+  Stockfish is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
   
-  Glaurung is distributed in the hope that it will be useful,
+  Stockfish is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
@@ -68,6 +69,12 @@ private:
 };
 
 
+/// Stores the endgame evaluation functions maps. Should be per thread
+/// because STL is not thread safe and locks are expensive.
+
+class EndgameFunctions;
+
+
 /// The MaterialInfoTable class represents a pawn hash table.  It is basically
 /// just an array of MaterialInfo objects and a few methods for accessing these
 /// objects.  The most important method is get_material_info, which looks up a
@@ -84,6 +91,7 @@ public:
 private:
   unsigned size;
   MaterialInfo *entries;
+  EndgameFunctions* funcs;
 };