From d594490329aed615c64ebcec6c4c224e796024e0 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Tue, 3 Mar 2020 17:51:36 +0300 Subject: [PATCH] Thread: removed unused wait() with predicate. It doesn't work this way anyway. --- Utilities/Thread.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/Utilities/Thread.h b/Utilities/Thread.h index d32a6f51c2..c4bc06700e 100644 --- a/Utilities/Thread.h +++ b/Utilities/Thread.h @@ -231,21 +231,6 @@ public: _wait_for(-1, true); } - // Wait until pred(). - template > - 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() {