[*] Another uniproc test
This commit is contained in:
parent
337df8040c
commit
4a73f7250f
@ -29,11 +29,18 @@ namespace Aurora::Threading
|
||||
AUKN_SYM AuUInt32 GetTotalSpinCountTimeout()
|
||||
{
|
||||
AuUInt32 uCount {};
|
||||
|
||||
if (!gRuntimeConfig.threadingConfig.bPlatformIsSMPProcessorOptimized)
|
||||
{
|
||||
return 16;
|
||||
}
|
||||
|
||||
uCount = 1u << AuUInt32(gRuntimeConfig.threadingConfig.uSpinLoopPowerA);
|
||||
if (gHasThreadLocalTimeout)
|
||||
{
|
||||
uCount += 1u << AuUInt32(tlsSpinCountLocal);
|
||||
}
|
||||
|
||||
return uCount;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user