[*] Runtime config padding

This commit is contained in:
Reece Wilson 2023-07-30 10:00:18 +01:00
parent ceb5b2961e
commit 86afd39dc3

View File

@ -323,7 +323,7 @@ namespace Aurora
{
// WARN: these values are not final
bool bNoThreadNames { false };
bool bNoThreadNames { false };
bool bPlatformIsSMPProcessorOptimized { true }; // Whether to attempt to using mm_pause or similar before yielding into the kernel
AuUInt8 uSpinLoopPowerA { 7 }; // Nudgable spinloop power. This is our local userland niceness factor; where 1 << n is the amount of smt-yield instructions to stall for
// This is comparable to Win32's SetCriticalSectionSpinCount applied across every single AuThreadPrimitives try-lock and lock.
@ -337,19 +337,25 @@ namespace Aurora
bool bPreferEmulatedWakeOnAddress { false };
};
struct DummyConfig
{
};
struct RuntimeStartInfo
{
ConsoleConfig console;
CryptoConfig crypto;
TelemetryConfig telemetry;
AsyncConfig async;
FIOConfig fio;
DebugConfig debug;
ThreadingConfig threadingConfig;
AuAlignTo<512, CryptoConfig> crypto;
AuAlignTo<512, TelemetryConfig> telemetry;
AuAlignTo<32, AsyncConfig> async;
AuAlignTo<32, FIOConfig> fio;
AuAlignTo<64, DebugConfig> debug;
AuAlignTo<32, ThreadingConfig> threadingConfig;
AuAlignTo<24, DummyConfig> padding;
bool bFIODisableBatching { true };
bool bIOLinuxHasProcIpcPerms { false };
};
/**
* @brief Initializes Aurora Runtime for the first and only time
* @return