]> git.sesse.net Git - stockfish/blobdiff - src/thread.h
Use size_t as operator[] argument type
[stockfish] / src / thread.h
index d1328daad91b9818859660e6adc18f0f83652b07..ad40a34146bbd8e8b8fe0f80be4dcc23b5dd7d44 100644 (file)
@@ -76,8 +76,7 @@ public:
   void wake_up();
   bool cutoff_occurred() const;
   bool is_available_to(Thread* master) const;
-  void idle_loop(SplitPoint* sp_master);
-  void idle_loop() { idle_loop(NULL); } // Hack to allow storing in start_fn
+  void idle_loop();
   void main_loop();
   void timer_loop();
   void wait_for_stop_or_ponderhit();
@@ -109,7 +108,7 @@ public:
   void init(); // No c'tor, Threads object is global and engine shall be fully initialized
   ~ThreadPool();
 
-  Thread& operator[](int id) { return *threads[id]; }
+  Thread& operator[](size_t id) { return *threads[id]; }
   bool use_sleeping_threads() const { return useSleepingThreads; }
   int min_split_depth() const { return minimumSplitDepth; }
   size_t size() const { return threads.size(); }