]> git.sesse.net Git - stockfish/blobdiff - src/thread.h
Get rid of nativeThread
[stockfish] / src / thread.h
index 215b27c688b2823b11112a56e862645cd7c726d0..ee7fb061229e0288ce163eda0ac944bda6118cb6 100644 (file)
@@ -89,14 +89,13 @@ struct SplitPoint {
 /// ThreadBase struct is the base of the hierarchy from where we derive all the
 /// specialized thread classes.
 
-struct ThreadBase {
+struct ThreadBase : public std::thread {
 
   virtual ~ThreadBase() = default;
   virtual void idle_loop() = 0;
   void notify_one();
   void wait_for(volatile const bool& b);
 
-  std::thread nativeThread;
   Mutex mutex;
   Spinlock spinlock;
   ConditionVariable sleepCondition;