This website works better with JavaScript.
首頁
說明
登入
lolengine
/
lol
镜像来自
https://github.com/lolengine/lol
關註
1
收藏
0
複製
0
程式碼
問題管理
0
版本發佈
0
Wiki
Activity
瀏覽代碼
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 年之前
父節點
2c61a5e805
當前提交
c19f584e26
共有
1 個文件被更改
,包括
1 次插入
和
1 次删除
分割檢視
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
查看文件
@@ -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…
取消
儲存