Thread: removed unused wait() with predicate.

It doesn't work this way anyway.
This commit is contained in:
Nekotekina 2020-03-03 17:51:36 +03:00
parent 6c66153372
commit d594490329
1 changed files with 0 additions and 15 deletions

View File

@ -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()
{