[*] Annoying Linux checks
This commit is contained in:
parent
209d1939aa
commit
b2e1df8f72
@ -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;
|
||||
}
|
||||
|
@ -133,7 +133,7 @@ namespace Aurora::Threading::Primitives
|
||||
break;
|
||||
}
|
||||
|
||||
if (ret == EAGAIN)
|
||||
if (ret == -EAGAIN)
|
||||
{
|
||||
bStatus = true;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user