From c9170bbb88e26120a0216dbd5f3415709c8dc514 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Fri, 13 Sep 2019 23:52:18 +0300 Subject: [PATCH] Fix lf_queue::wait Remove incorrect loop --- Utilities/lockless.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/lockless.h b/Utilities/lockless.h index 9429b22309..7b20b798cd 100644 --- a/Utilities/lockless.h +++ b/Utilities/lockless.h @@ -357,7 +357,7 @@ public: void wait() noexcept { - while (m_head == 0) + if (m_head == 0) { m_head.wait(0); }