[*] Amend runtime config typo: Prefer*

[-] Redundant AuTime header (ExtendedTimer.hpp)
This commit is contained in:
Reece Wilson 2023-07-13 19:50:18 +01:00
parent 6e59770eee
commit 8a4fc0d9c3
5 changed files with 9 additions and 10 deletions

View File

@ -329,9 +329,9 @@ namespace Aurora
bool bEnableAggressiveScheduling { false }; bool bEnableAggressiveScheduling { false };
bool bEnableAgrSchedulingRatelimit { true }; bool bEnableAgrSchedulingRatelimit { true };
bool bPreferNt51XpMutexesOver8 { false }; bool bPreferNt51XpMutexesOver8 { false };
bool bPerferNt51XpCondvarsOver8 { false }; bool bPreferNt51XpCondvarsOver8 { false };
bool bPerferNtCondvarModernWinSpin { true }; // to reevaluate (true could cause double spinning depending on the nt version! prediction: true regardless) bool bPreferNtCondvarModernWinSpin { true }; // to reevaluate (true could cause double spinning depending on the nt version! prediction: true regardless)
bool bPerferNtCondvarOlderWinSpin { true }; // to reevaluate (true could cause excessive context switching in signaling thread! prediction: back to false) bool bPreferNtCondvarOlderWinSpin { true }; // to reevaluate (true could cause excessive context switching in signaling thread! prediction: back to false)
}; };
struct RuntimeStartInfo struct RuntimeStartInfo

View File

@ -27,5 +27,4 @@ namespace Aurora::Time
} }
#include "Stopwatch.hpp" #include "Stopwatch.hpp"
#include "DebugBenchmark.hpp" #include "DebugBenchmark.hpp"
#include "ExtendedTimer.hpp"

View File

@ -131,7 +131,7 @@ namespace Aurora
!pNtWaitForKeyedEvent; !pNtWaitForKeyedEvent;
gUseNativeWaitCondvar = (pWaitOnAddress && gUseNativeWaitCondvar = (pWaitOnAddress &&
!gRuntimeConfig.threadingConfig.bPerferNt51XpCondvarsOver8 && !gRuntimeConfig.threadingConfig.bPreferNt51XpCondvarsOver8 &&
(pRtlWaitOnAddress || AuBuild::kCurrentPlatform != AuBuild::EPlatform::ePlatformWin32)) || (pRtlWaitOnAddress || AuBuild::kCurrentPlatform != AuBuild::EPlatform::ePlatformWin32)) ||
!pNtWaitForKeyedEvent; !pNtWaitForKeyedEvent;

View File

@ -93,7 +93,7 @@ namespace Aurora::Threading::Primitives
if (gUseNativeWaitCondvar) if (gUseNativeWaitCondvar)
{ {
// Reverted: 5b495f7fd9495aa55395666e166ac499955215dc // Reverted: 5b495f7fd9495aa55395666e166ac499955215dc
if (gRuntimeConfig.threadingConfig.bPerferNtCondvarModernWinSpin) if (gRuntimeConfig.threadingConfig.bPreferNtCondvarModernWinSpin)
{ {
if (!bIOU) if (!bIOU)
{ {
@ -115,7 +115,7 @@ namespace Aurora::Threading::Primitives
else else
{ {
// Reverted: 5b495f7fd9495aa55395666e166ac499955215dc // Reverted: 5b495f7fd9495aa55395666e166ac499955215dc
if (gRuntimeConfig.threadingConfig.bPerferNtCondvarOlderWinSpin) if (gRuntimeConfig.threadingConfig.bPreferNtCondvarOlderWinSpin)
{ {
if (!bIOU) if (!bIOU)
{ {
@ -234,7 +234,7 @@ namespace Aurora::Threading::Primitives
if (gUseNativeWaitCondvar) if (gUseNativeWaitCondvar)
{ {
if (gRuntimeConfig.threadingConfig.bPerferNtCondvarModernWinSpin) if (gRuntimeConfig.threadingConfig.bPreferNtCondvarModernWinSpin)
{ {
if (!bIOU) if (!bIOU)
{ {
@ -251,7 +251,7 @@ namespace Aurora::Threading::Primitives
} }
else else
{ {
if (gRuntimeConfig.threadingConfig.bPerferNtCondvarOlderWinSpin) if (gRuntimeConfig.threadingConfig.bPreferNtCondvarOlderWinSpin)
{ {
if (!bIOU) if (!bIOU)
{ {