mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 23:41:26 +12:00
Qt/Core: implement max llvm compile threads
This commit is contained in:
parent
c8965564e4
commit
b9c10a186d
7 changed files with 34 additions and 19 deletions
|
@ -1161,7 +1161,9 @@ extern void ppu_initialize(const ppu_module& info)
|
|||
static semaphore<> jmutex;
|
||||
|
||||
// Initialize semaphore with the max number of threads
|
||||
semaphore<INT32_MAX> jcores(std::thread::hardware_concurrency());
|
||||
u32 max_threads = static_cast<u32>(g_cfg.core.llvm_threads);
|
||||
s32 thread_count = max_threads > 0 ? std::min(max_threads, std::thread::hardware_concurrency()) : std::thread::hardware_concurrency();
|
||||
semaphore<INT32_MAX> jcores(thread_count);
|
||||
|
||||
if (!jcores.get())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue