From 7df04abc1537c26d9f2e2733d6c17a31e0cd7f2e Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Thu, 5 Jun 2014 21:28:59 +0100 Subject: [PATCH] DecoderStack: Fixed thread dead-lock --- pv/data/decoderstack.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pv/data/decoderstack.cpp b/pv/data/decoderstack.cpp index 31dc8b3..414aaf0 100644 --- a/pv/data/decoderstack.cpp +++ b/pv/data/decoderstack.cpp @@ -81,6 +81,7 @@ DecoderStack::~DecoderStack() { if (_decode_thread.joinable()) { _interrupt = true; + _input_cond.notify_one(); _decode_thread.join(); } } @@ -185,6 +186,7 @@ void DecoderStack::begin_decode() if (_decode_thread.joinable()) { _interrupt = true; + _input_cond.notify_one(); _decode_thread.join(); } -- 2.30.2