mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 19:28:43 +12:00
Thread.cpp refinement
Hide thread mutex Safe notify() method Other refactoring
This commit is contained in:
parent
da878c36bd
commit
a5a2d43d7c
35 changed files with 532 additions and 591 deletions
|
@ -180,7 +180,7 @@ public:
|
|||
data.value |= value;
|
||||
});
|
||||
|
||||
if (old.wait) spu.lock_notify();
|
||||
if (old.wait) spu.notify();
|
||||
}
|
||||
|
||||
// push unconditionally (overwriting previous value), may require notification
|
||||
|
@ -193,7 +193,7 @@ public:
|
|||
data.value = value;
|
||||
});
|
||||
|
||||
if (old.wait) spu.lock_notify();
|
||||
if (old.wait) spu.notify();
|
||||
}
|
||||
|
||||
// returns true on success
|
||||
|
@ -228,7 +228,7 @@ public:
|
|||
// value is not cleared and may be read again
|
||||
});
|
||||
|
||||
if (old.wait) spu.lock_notify();
|
||||
if (old.wait) spu.notify();
|
||||
|
||||
return old.value;
|
||||
}
|
||||
|
@ -295,7 +295,7 @@ public:
|
|||
return false;
|
||||
}))
|
||||
{
|
||||
spu.lock_notify();
|
||||
spu.notify();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue