]> git.sesse.net Git - stockfish/blobdiff - src/material.h
Material: lockless per-thread maps
[stockfish] / src / material.h
index 59f7f3e26001c2d05832118cddc2e0fef5fe5fb4..4597295814240e0103c72d549c4734e60fafc4d0 100644 (file)
@@ -69,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
@@ -85,6 +91,7 @@ public:
 private:
   unsigned size;
   MaterialInfo *entries;
+  EndgameFunctions* funcs;
 };