mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 03:25:16 +00:00
rsx: Remove unnecessary "else" clauses
This commit is contained in:
parent
685b3ee41b
commit
1c78584f41
1 changed files with 9 additions and 13 deletions
|
@ -23,10 +23,8 @@ namespace rsx
|
|||
{
|
||||
return ref.try_lock_shared();
|
||||
}
|
||||
else
|
||||
{
|
||||
return ref.try_lock();
|
||||
}
|
||||
|
||||
return ref.try_lock();
|
||||
}
|
||||
|
||||
void lock()
|
||||
|
@ -34,11 +32,10 @@ namespace rsx
|
|||
if constexpr (Shared)
|
||||
{
|
||||
ref.lock_shared();
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
ref.lock();
|
||||
}
|
||||
|
||||
ref.lock();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -82,13 +79,12 @@ namespace rsx
|
|||
if (!self || self->id_type() != 0x55u)
|
||||
{
|
||||
mutex_.lock();
|
||||
continue;
|
||||
}
|
||||
else
|
||||
|
||||
while (!mutex_.try_lock())
|
||||
{
|
||||
while (!mutex_.try_lock())
|
||||
{
|
||||
self->cpu_wait({});
|
||||
}
|
||||
self->cpu_wait({});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue