Pārlūkot izejas kodu

Assume a system always has threads unless LOL_NOTHREADS is defined.

For more information the user can rely on std:🧵:hardware_concurrency().
pull/1/head
Sam Hocevar pirms 4 gadiem
vecāks
revīzija
c19f584e26
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      include/lol/private/sys/threading.h

+ 1
- 1
include/lol/private/sys/threading.h Parādīt failu

@@ -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:


Notiek ielāde…
Atcelt
Saglabāt