]> git.sesse.net Git - stockfish/blobdiff - src/position.h
Revert thread_local stuff
[stockfish] / src / position.h
index 4713094d537ea0f89b3ac44bc7cd3fe7e0f2ac21..b59e5923e3efab97c8733aa0fe12fd2a02910d51 100644 (file)
@@ -176,7 +176,7 @@ public:
   Color side_to_move() const;
   int startpos_ply_counter() const;
   bool is_chess960() const;
-  Thread& this_thread() const;
+  Thread* this_thread() const;
   int64_t nodes_searched() const;
   void set_nodes_searched(int64_t n);
   template<bool SkipRepetition> bool is_draw() const;
@@ -434,8 +434,8 @@ inline PieceType Position::captured_piece_type() const {
   return st->capturedType;
 }
 
-inline Thread& Position::this_thread() const {
-  return *thisThread;
+inline Thread* Position::this_thread() const {
+  return thisThread;
 }
 
 #endif // !defined(POSITION_H_INCLUDED)