[*] Fix WakeOnAddress constness of the comparison argument
This commit is contained in:
parent
fa34f7dcef
commit
2fae266876
@ -17,18 +17,18 @@ namespace Aurora::Threading
|
||||
AuUInt8 uNMaximumThreads);
|
||||
|
||||
AUKN_SYM bool TryWaitOnAddress(void *pTargetAddress,
|
||||
void *pCompareAddress,
|
||||
const void *pCompareAddress,
|
||||
AuUInt8 uWordSize);
|
||||
|
||||
// Relative timeout variant of nanosecond resolution WoA. nanoseconds in steady clock time. 0 = indefinite
|
||||
AUKN_SYM bool WaitOnAddress(void *pTargetAddress,
|
||||
void *pCompareAddress,
|
||||
const void *pCompareAddress,
|
||||
AuUInt8 uWordSize,
|
||||
AuUInt64 qwNanoseconds);
|
||||
|
||||
// Absolute timeout variant of nanosecond resolution WoA. Nanoseconds are in steady clock time. 0 = indefinite
|
||||
AUKN_SYM bool WaitOnAddressSteady(void *pTargetAddress,
|
||||
void *pCompareAddress,
|
||||
const void *pCompareAddress,
|
||||
AuUInt8 uWordSize,
|
||||
AuUInt64 qwNanoseconds);
|
||||
}
|
@ -393,7 +393,7 @@ namespace Aurora::Threading
|
||||
}
|
||||
|
||||
bool WaitOnAddressWide(void *pTargetAddress,
|
||||
void *pCompareAddress,
|
||||
const void *pCompareAddress,
|
||||
AuUInt8 uWordSize,
|
||||
AuOptional<AuUInt64> qwNanoseconds,
|
||||
AuOptional<AuUInt64> qwNanosecondsAbs,
|
||||
@ -763,7 +763,7 @@ namespace Aurora::Threading
|
||||
AuUInt64 qwNanosecondsAbs)
|
||||
{
|
||||
auto [pWaitAddress, uDelta, uMask] = DecodeAddress(pTargetAddress, uWordSize);
|
||||
auto pCompareAddress2 = AuReinterpretCast<char *>(pCompareAddress) - uDelta;
|
||||
auto pCompareAddress2 = AuReinterpretCast<const char *>(pCompareAddress) - uDelta;
|
||||
|
||||
WaitState state;
|
||||
state.uDownsizeMask = uMask;
|
||||
@ -785,7 +785,7 @@ namespace Aurora::Threading
|
||||
}
|
||||
|
||||
AUKN_SYM bool WaitOnAddress(void *pTargetAddress,
|
||||
void *pCompareAddress,
|
||||
const void *pCompareAddress,
|
||||
AuUInt8 uWordSize,
|
||||
AuUInt64 qwNanoseconds)
|
||||
{
|
||||
@ -793,7 +793,7 @@ namespace Aurora::Threading
|
||||
if (bWaitOnAddress)
|
||||
{
|
||||
auto [pWaitAddress, uDelta, uMask] = DecodeAddress(pTargetAddress, uWordSize);
|
||||
auto pCompareAddress2 = AuReinterpretCast<char *>(pCompareAddress) - uDelta;
|
||||
auto pCompareAddress2 = AuReinterpretCast<const char *>(pCompareAddress) - uDelta;
|
||||
|
||||
WaitState state;
|
||||
state.uDownsizeMask = uMask;
|
||||
@ -827,7 +827,7 @@ namespace Aurora::Threading
|
||||
}
|
||||
|
||||
AUKN_SYM bool TryWaitOnAddress(void *pTargetAddress,
|
||||
void *pCompareAddress,
|
||||
const void *pCompareAddress,
|
||||
AuUInt8 uWordSize)
|
||||
{
|
||||
return Primitives::DoTryIf([=]()
|
||||
|
Loading…
Reference in New Issue
Block a user