mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 01:38:37 +12:00
Thread: removed unused wait() with predicate.
It doesn't work this way anyway.
This commit is contained in:
parent
6c66153372
commit
d594490329
1 changed files with 0 additions and 15 deletions
|
@ -231,21 +231,6 @@ public:
|
||||||
_wait_for(-1, true);
|
_wait_for(-1, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Wait until pred().
|
|
||||||
template <typename F, typename RT = std::invoke_result_t<F>>
|
|
||||||
static inline RT wait(F&& pred)
|
|
||||||
{
|
|
||||||
while (true)
|
|
||||||
{
|
|
||||||
if (RT result = pred())
|
|
||||||
{
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
_wait_for(-1, true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get current thread (may be nullptr)
|
// Get current thread (may be nullptr)
|
||||||
static thread_base* get_current()
|
static thread_base* get_current()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue