This commit is contained in:
Reece Wilson 2024-03-10 09:57:27 +00:00
parent 9c4315ff95
commit 99533c456d

View File

@ -183,7 +183,7 @@ namespace Aurora::Threading::Waitables
{ {
const AuUInt32 kRef { uValue }; const AuUInt32 kRef { uValue };
AuUInt32 uState {}; AuUInt32 uState {};
bool bStatus {}; bool bStatus { true };
while (!TryWaitOnAddressUntilEqual((const void *)&this->uAtomicState, &kRef, sizeof(kRef))) while (!TryWaitOnAddressUntilEqual((const void *)&this->uAtomicState, &kRef, sizeof(kRef)))
{ {
@ -217,7 +217,7 @@ namespace Aurora::Threading::Waitables
AuOptional<AuUInt64> qwTimeoutAbs) AuOptional<AuUInt64> qwTimeoutAbs)
{ {
AuUInt32 uState {}; AuUInt32 uState {};
bool bStatus {}; bool bStatus { true };
while ((uState = AuAtomicLoad(&this->uAtomicState) < uValue)) while ((uState = AuAtomicLoad(&this->uAtomicState) < uValue))
{ {