[*] Linux unaligned signal fix

This commit is contained in:
Reece Wilson 2023-08-31 00:50:54 +01:00 committed by Jamie Reece Wilson
parent affe4cc496
commit dd655ad3e0

View File

@ -855,7 +855,8 @@ namespace Aurora::Threading
{
if (IsWaitOnRecommended())
{
RunOSWakeNOnAddress(pTargetAddress, uNMaximumThreads);
auto [pWakeAddress, uDelta, uMask] = DecodeAddress(pTargetAddress, 1);
RunOSWakeNOnAddress(pWakeAddress, uDelta ? INT_MAX : uNMaximumThreads);
}
else
{
@ -888,7 +889,8 @@ namespace Aurora::Threading
{
if (IsWaitOnRecommended())
{
RunOSWakeAllOnAddress(pTargetAddress);
auto [pWakeAddress, uDelta, uMask] = DecodeAddress(pTargetAddress, 1);
RunOSWakeAllOnAddress(pWakeAddress);
}
else
{