[*] Annoying Linux checks

This commit is contained in:
Reece Wilson 2023-08-27 21:35:40 +01:00
parent 209d1939aa
commit b2e1df8f72
2 changed files with 3 additions and 3 deletions

View File

@ -325,11 +325,11 @@ static bool LinuxLockFutex(AuUInt32 *futex, AuUInt32 timeout)
int res = Aurora::futex_wait_shared(futex, old, timeout ? &tspec : nullptr);
if (res < 0)
{
if (res == ETIMEDOUT || errno == ETIMEDOUT)
if (res == -ETIMEDOUT)
{
return false;
}
else if (res == -EAGAIN || errno == EAGAIN)
else if (res == -EAGAIN)
{
bContended = true;
}

View File

@ -133,7 +133,7 @@ namespace Aurora::Threading::Primitives
break;
}
if (ret == EAGAIN)
if (ret == -EAGAIN)
{
bStatus = true;
break;