X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fthread.h;h=3eb8fc9cfe4d8f001a5ae8a4d4685a39cc6539f5;hb=0ecc920a09f479cb9b568716597e0756da557174;hp=c39c6e695e9fc7947a9b3a89fb7aad655c61e5d9;hpb=e1919384a23fe728422f995369161efa192380db;p=stockfish diff --git a/src/thread.h b/src/thread.h index c39c6e69..3eb8fc9c 100644 --- a/src/thread.h +++ b/src/thread.h @@ -119,9 +119,7 @@ public: bool use_sleeping_threads() const { return useSleepingThreads; } int min_split_depth() const { return minimumSplitDepth; } int size() const { return (int)threads.size(); } - Thread* main_thread() const { return threads[0]; } - Thread* this_thread() const { return (Thread*)tls_get(tlsKey); } - void set_this_thread(Thread* th) const { tls_set(tlsKey, th); } + Thread* main_thread() { return threads[0]; } void wake_up() const; void sleep() const; @@ -140,7 +138,6 @@ private: std::vector threads; Thread* timer; - ThreadLocalStorageKey tlsKey; Lock splitLock; WaitCondition sleepCond; Depth minimumSplitDepth;