From c19f584e26cf5f2529f5f813f4ce2cca845ba565 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Thu, 2 Jul 2020 23:06:20 +0200 Subject: [PATCH] Assume a system always has threads unless LOL_NOTHREADS is defined. For more information the user can rely on std::thread::hardware_concurrency(). --- include/lol/private/sys/threading.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/lol/private/sys/threading.h b/include/lol/private/sys/threading.h index aa4d9652..491ccbb3 100644 --- a/include/lol/private/sys/threading.h +++ b/include/lol/private/sys/threading.h @@ -60,7 +60,7 @@ public: // of threads/cores even though the system cannot spawn threads. return false; #endif - return !disable_threads && std::thread::hardware_concurrency() > 1; + return !disable_threads; } private: