mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 00:11:24 +12:00
Fix minor issue with usage of STL thread::hardware_concurrency()
This commit is contained in:
parent
11ba6e45ab
commit
d3bc96a201
9 changed files with 24 additions and 13 deletions
|
@ -1931,7 +1931,8 @@ std::string Emulator::GetFormattedTitle(double fps) const
|
|||
u32 Emulator::GetMaxThreads() const
|
||||
{
|
||||
const u32 max_threads = static_cast<u32>(g_cfg.core.llvm_threads);
|
||||
const u32 thread_count = max_threads > 0 ? std::min(max_threads, std::thread::hardware_concurrency()) : std::thread::hardware_concurrency();
|
||||
const u32 hw_threads = utils::get_thread_count();
|
||||
const u32 thread_count = max_threads > 0 ? std::min(max_threads, hw_threads) : hw_threads;
|
||||
return thread_count;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue