mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-07-11 01:24:54 +02:00
Utilities/sema.cpp: Minor optimization
This commit is contained in:
+7
-1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user