diff --git a/src/thread.h b/src/thread.h --- a/src/thread.h +++ b/src/thread.h @@ -45,7 +45,6 @@ void SetCurrentThreadName(const char *na template inline bool StartNewThread(std::thread *thr, const char *name, TFn&& _Fx, TArgs&&... _Ax) { -#ifndef NO_THREADS try { static std::mutex thread_startup_mutex; std::lock_guard lock(thread_startup_mutex); @@ -79,7 +78,6 @@ inline bool StartNewThread(std::thread * /* Something went wrong, the system we are running on might not support threads. */ Debug(misc, 1, "Can't create thread '{}': {}", name, e.what()); } -#endif return false; }