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:
parent
7900780cea
commit
17c8b34088
@ -328,8 +328,11 @@ static bool sema_get(u32 id)
|
|||||||
{
|
{
|
||||||
// Increase reference from non-zero value
|
// Increase reference from non-zero value
|
||||||
refs++;
|
refs++;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}))
|
|
||||||
|
return false;
|
||||||
|
}).second)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user