1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 18:53:28 +01:00

atomic.cpp: Optimize sema_get to not always use atomic instruction (#8907)

This commit is contained in:
Eladash 2020-09-16 22:15:14 +03:00 committed by GitHub
parent 7900780cea
commit 17c8b34088
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -328,8 +328,11 @@ static bool sema_get(u32 id)
{
// Increase reference from non-zero value
refs++;
return true;
}
}))
return false;
}).second)
{
return true;
}