[*] NT Win8+ FastPath: Fix missing BSL

This commit is contained in:
Reece Wilson 2024-02-04 16:38:17 +00:00
parent 0784d9101c
commit 899e505b1e

View File

@ -382,7 +382,7 @@ namespace Aurora::Threading::Primitives
while (true)
{
if (AuAtomicCompareExchange(&this->wlist,
expected - uAwoken,
(expected - uAwoken) << kShiftCountByBits,
original) == original)
{
InternalLTSWakeAll((void *)&this->wlist);
@ -457,10 +457,10 @@ namespace Aurora::Threading::Primitives
auto uCount = expected - uAwoken;
if (AuAtomicCompareExchange(&this->wlist,
uCount,
uCount << kShiftCountByBits,
original) == original)
{
InternalLTSWakeCount((void *)&this->wlist, uCount);
InternalLTSWakeCount((void *)&this->wlist, uAwoken);
return;
}
else