X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.h;h=04e023067999c63fefb432cfa67cfcda1b1787f5;hp=4b712076083b701ee23183e9a352d0ecfc2b6da6;hb=32d3a07c6710e84d78999cb69c6a866b0bfff482;hpb=b978eb05dcce5eb874bb45e30af854d332b9738f diff --git a/src/thread.h b/src/thread.h index 4b712076..04e02306 100644 --- a/src/thread.h +++ b/src/thread.h @@ -112,16 +112,16 @@ class ThreadsManager { static storage duration are automatically set to zero before enter main() */ public: - void init(); - void exit(); + void init(); // No c'tor becuase Threads is static and we need stuff initialized + ~ThreadsManager(); Thread& operator[](int id) { return *threads[id]; } bool use_sleeping_threads() const { return useSleepingThreads; } int min_split_depth() const { return minimumSplitDepth; } int size() const { return (int)threads.size(); } - void wake_up(); - void sleep(); + void wake_up() const; + void sleep() const; void read_uci_options(); bool available_slave_exists(int master) const; void set_timer(int msec);