Add PLATFORM_THREADS_LIMIT for maximum concurrency limiting

This commit is contained in:
Wojtek Figat
2021-07-08 00:25:49 +02:00
parent 29be6b0068
commit 446458d20c
12 changed files with 16 additions and 15 deletions

View File

@@ -85,7 +85,7 @@ public:
namespace
{
JobSystemService JobSystemInstance;
Thread* Threads[32] = {};
Thread* Threads[PLATFORM_THREADS_LIMIT] = {};
int32 ThreadsCount = 0;
bool JobStartingOnDispatch = true;
volatile int64 ExitFlag = 0;