This website works better with JavaScript.
Home
Help
Sign In
lolengine
/
lol
mirror of
https://github.com/lolengine/lol
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
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
4 years ago
parent
2c61a5e805
commit
c19f584e26
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
include/lol/private/sys/threading.h
+ 1
- 1
include/lol/private/sys/threading.h
View File
@@ -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:
Write
Preview
Loading…
Cancel
Save