[*] Why must all languages be garbage at expressing life-span of constness?

This is const-correct, as in, we don't expect to modify the pointer; you dont need to be a writer
This was const-correct, as in, this field better be a volatile block of memory you expect to update - plz dont to any retarded assumptions based on it being "const," compiler.
This commit is contained in:
Reece Wilson 2023-08-22 11:08:56 +01:00
parent 3747fb7c6f
commit ccfd0fafab
2 changed files with 7 additions and 7 deletions

View File

@ -16,18 +16,18 @@ namespace Aurora::Threading
AUKN_SYM void WakeNOnAddress(const void *pTargetAddress, AUKN_SYM void WakeNOnAddress(const void *pTargetAddress,
AuUInt8 uNMaximumThreads); AuUInt8 uNMaximumThreads);
AUKN_SYM bool TryWaitOnAddress(void *pTargetAddress, AUKN_SYM bool TryWaitOnAddress(const void *pTargetAddress,
const void *pCompareAddress, const void *pCompareAddress,
AuUInt8 uWordSize); AuUInt8 uWordSize);
// Relative timeout variant of nanosecond resolution WoA. nanoseconds in steady clock time. 0 = indefinite // Relative timeout variant of nanosecond resolution WoA. nanoseconds in steady clock time. 0 = indefinite
AUKN_SYM bool WaitOnAddress(void *pTargetAddress, AUKN_SYM bool WaitOnAddress(const void *pTargetAddress,
const void *pCompareAddress, const void *pCompareAddress,
AuUInt8 uWordSize, AuUInt8 uWordSize,
AuUInt64 qwNanoseconds); AuUInt64 qwNanoseconds);
// Absolute timeout variant of nanosecond resolution WoA. Nanoseconds are in steady clock time. 0 = indefinite // Absolute timeout variant of nanosecond resolution WoA. Nanoseconds are in steady clock time. 0 = indefinite
AUKN_SYM bool WaitOnAddressSteady(void *pTargetAddress, AUKN_SYM bool WaitOnAddressSteady(const void *pTargetAddress,
const void *pCompareAddress, const void *pCompareAddress,
AuUInt8 uWordSize, AuUInt8 uWordSize,
AuUInt64 qwNanoseconds); AuUInt64 qwNanoseconds);

View File

@ -391,7 +391,7 @@ namespace Aurora::Threading
return kArray; return kArray;
} }
bool WaitOnAddressWide(void *pTargetAddress, bool WaitOnAddressWide(const void *pTargetAddress,
const void *pCompareAddress, const void *pCompareAddress,
AuUInt8 uWordSize, AuUInt8 uWordSize,
AuOptional<AuUInt64> qwNanoseconds, AuOptional<AuUInt64> qwNanoseconds,
@ -795,7 +795,7 @@ namespace Aurora::Threading
} }
} }
AUKN_SYM bool WaitOnAddress(void *pTargetAddress, AUKN_SYM bool WaitOnAddress(const void *pTargetAddress,
const void *pCompareAddress, const void *pCompareAddress,
AuUInt8 uWordSize, AuUInt8 uWordSize,
AuUInt64 qwNanoseconds) AuUInt64 qwNanoseconds)
@ -837,7 +837,7 @@ namespace Aurora::Threading
return false; return false;
} }
AUKN_SYM bool TryWaitOnAddress(void *pTargetAddress, AUKN_SYM bool TryWaitOnAddress(const void *pTargetAddress,
const void *pCompareAddress, const void *pCompareAddress,
AuUInt8 uWordSize) AuUInt8 uWordSize)
{ {
@ -896,7 +896,7 @@ namespace Aurora::Threading
} }
} }
AUKN_SYM bool WaitOnAddressSteady(void *pTargetAddress, AUKN_SYM bool WaitOnAddressSteady(const void *pTargetAddress,
const void *pCompareAddress, const void *pCompareAddress,
AuUInt8 uWordSize, AuUInt8 uWordSize,
AuUInt64 qwNanoseconds) AuUInt64 qwNanoseconds)