mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
small collection of fixes
This commit is contained in:
parent
a16cc3ac8a
commit
c9d2aed286
3 changed files with 12 additions and 25 deletions
|
|
@ -1053,15 +1053,8 @@ namespace stx
|
|||
ensure(is_same_ptr_test<T, U>(cmp.m_ptr));
|
||||
|
||||
shared_type old = cmp;
|
||||
|
||||
if (compare_exchange(old, std::move(exch)))
|
||||
{
|
||||
return old;
|
||||
}
|
||||
else
|
||||
{
|
||||
return old;
|
||||
}
|
||||
static_cast<void>(compare_exchange(old, std::move(exch)));
|
||||
return old;
|
||||
}
|
||||
|
||||
// More lightweight than compare_exchange
|
||||
|
|
@ -1114,15 +1107,8 @@ namespace stx
|
|||
ensure(is_same_ptr_test<T, U>(cmp.m_ptr));
|
||||
|
||||
shared_type old = cmp;
|
||||
|
||||
if (compare_exchange(old, std::move(exch)))
|
||||
{
|
||||
return old;
|
||||
}
|
||||
else
|
||||
{
|
||||
return old;
|
||||
}
|
||||
static_cast<void>(compare_exchange(old, std::move(exch)));
|
||||
return old;
|
||||
}
|
||||
|
||||
// Supplementary
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue