[*] Wait multiple on address fix again: op precedence, and Linux build regression

This commit is contained in:
Reece Wilson 2024-12-01 17:14:06 +00:00
parent 91ce1f7711
commit 8a94676549

View File

@ -251,7 +251,7 @@ namespace Aurora::Threading
if (qwNanosecondsAbs)
{
#if defined(WOA_SEMAPHORE_MODE)
return this->semaphore->LockAbsNS(uEndTime);
return this->semaphore->LockAbsNS(qwNanosecondsAbs);
#else
auto uNow = AuTime::SteadyClockNS();
@ -1066,7 +1066,7 @@ namespace Aurora::Threading
AuAtomicClearU8Lock(&this->uAtomic);
}
#define AddressToIndexOp(pAddress) AuHashCode(pAddress) & (kDefaultWaitPerProcess - 1)
#define AddressToIndexOp(pAddress) (AuHashCode(pAddress) & (kDefaultWaitPerProcess - 1))
#define AddressToIndex AddressToIndexOp(pAddress)
WaitEntry *ProcessWaitContainer::WaitBufferFrom(const void *pAddress, AuUInt8 uSize, bool bScheduleFirst, const void *pCompareAddress, EWaitMethod eWaitMethod)