mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 11:36:13 +00: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 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)
|
||||
static thread_base* get_current()
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue