Fix ThreadLocal when thread count limit is low on a target platform or if it's only main-thread
This commit is contained in:
@@ -75,7 +75,7 @@ public:
|
||||
namespace
|
||||
{
|
||||
JobSystemService JobSystemInstance;
|
||||
Thread* Threads[PLATFORM_THREADS_LIMIT / 2] = {};
|
||||
Thread* Threads[(PLATFORM_THREADS_LIMIT + 1) / 2] = {};
|
||||
int32 ThreadsCount = 0;
|
||||
bool JobStartingOnDispatch = true;
|
||||
volatile int64 ExitFlag = 0;
|
||||
|
||||
Reference in New Issue
Block a user