DiskCache: make Writer thread low-priority

This commit is contained in:
Pierre-Loup A. Griffais committed 2026-08-23 14:01:32 -07:00
1 parent af9b438eec
commit c3fb6ccaaa
7 files changed
+39 -17

No files matched your search

+3 -3
View File
@@ -7,7 +7,7 @@
#include <unistd.h>
namespace FEXCore::Threads {
static fextl::unique_ptr<FEXCore::Threads::Thread> CreateThread_Default(ThreadFunc Func, void* Arg) {
static fextl::unique_ptr<FEXCore::Threads::Thread> CreateThread_Default(ThreadFunc Func, void* Arg, bool LowPriority) {
ERROR_AND_DIE_FMT("Frontend didn't setup thread creation!");
}
@@ -20,8 +20,8 @@ static FEXCore::Threads::Pointers Ptrs = {
.CleanupAfterFork = CleanupAfterFork_Default,
};
fextl::unique_ptr<FEXCore::Threads::Thread> FEXCore::Threads::Thread::Create(ThreadFunc Func, void* Arg) {
return Ptrs.CreateThread(Func, Arg);
fextl::unique_ptr<FEXCore::Threads::Thread> FEXCore::Threads::Thread::Create(ThreadFunc Func, void* Arg, bool LowPriority) {
return Ptrs.CreateThread(Func, Arg, LowPriority);
}
void FEXCore::Threads::Thread::CleanupAfterFork() {