X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.h;h=92f5ed33a168b9742c176055759b01cb78c2c6e7;hp=d3dd18679b2a2b9b143caee5cfab79d166094aea;hb=a3a0df92a3ed5ce7c98ff596e687d3d6533590c8;hpb=e8f9447b11efd80a01733175c5076db988c45aa9 diff --git a/src/thread.h b/src/thread.h index d3dd1867..92f5ed33 100644 --- a/src/thread.h +++ b/src/thread.h @@ -143,9 +143,10 @@ struct MainThread : public Thread { }; struct TimerThread : public ThreadBase { - TimerThread() : msec(0) {} + TimerThread() : run(false) {} virtual void idle_loop(); - int msec; + bool run; + static const int Resolution = 5; // msec between two check_time() calls };