Refactor ThreadLocal when running on hardware with more cores than PLATFORM_THREADS_LIMIT
This commit is contained in:
@@ -93,7 +93,7 @@ struct TIsPODType<JobContext>
|
||||
namespace
|
||||
{
|
||||
JobSystemService JobSystemInstance;
|
||||
Thread* Threads[PLATFORM_THREADS_LIMIT] = {};
|
||||
Thread* Threads[PLATFORM_THREADS_LIMIT / 2] = {};
|
||||
int32 ThreadsCount = 0;
|
||||
bool JobStartingOnDispatch = true;
|
||||
volatile int64 ExitFlag = 0;
|
||||
|
||||
Reference in New Issue
Block a user