From b8b6dbe791fd3eddb25d8712ec03cf2251ed5bf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Sto=C5=A1i=C4=87?= Date: Tue, 11 Aug 2020 10:39:18 +0200 Subject: [PATCH] Potential fix for a crash in OnThreadExecutor (#5840) --- src/common/on_thread_executor.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common/on_thread_executor.h b/src/common/on_thread_executor.h index a498afdf74..2ea92c9c12 100644 --- a/src/common/on_thread_executor.h +++ b/src/common/on_thread_executor.h @@ -22,10 +22,9 @@ public: private: void worker_thread(); - std::thread _worker_thread; - std::mutex _task_mutex; std::condition_variable _task_cv; std::atomic_bool _shutdown_request; std::queue> _task_queue; + std::thread _worker_thread; };