mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-07-09 17:25:18 -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
|
||||
value += c_waiter;
|
||||
}
|
||||
});
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}).first;
|
||||
|
||||
if (value & c_value_mask)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user