mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-07-10 01:54:46 -06:00
Utilities/sema.cpp: Minor optimization
This commit is contained in:
parent
24a1576629
commit
537ad399bb
@ -41,7 +41,13 @@ void semaphore_base::imp_wait()
|
|||||||
// Add waiter
|
// Add waiter
|
||||||
value += c_waiter;
|
value += c_waiter;
|
||||||
}
|
}
|
||||||
});
|
else
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}).first;
|
||||||
|
|
||||||
if (value & c_value_mask)
|
if (value & c_value_mask)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user