mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-02 21:11:25 +12:00
Remove ASSUME macro
It's dangerous and sometimes bluntly misused feature. Its optimization potential is near-zero.
This commit is contained in:
parent
61b882b2a6
commit
b382d3b3e9
23 changed files with 40 additions and 68 deletions
|
@ -372,8 +372,6 @@ public:
|
|||
// Try to abort by assigning thread_state::aborting (UB if assigning different state)
|
||||
named_thread& operator=(thread_state s)
|
||||
{
|
||||
ASSUME(s == thread_state::aborting);
|
||||
|
||||
if (s == thread_state::aborting && thread::m_sync.fetch_op([](u64& v){ return !(v & 3) && (v |= 1); }).second)
|
||||
{
|
||||
if (s == thread_state::aborting)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue