From: Joel Holdsworth Date: Thu, 5 Jun 2014 20:28:59 +0000 (+0100) Subject: DecoderStack: Fixed thread dead-lock X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=commitdiff_plain;h=7df04abc1537c26d9f2e2733d6c17a31e0cd7f2e DecoderStack: Fixed thread dead-lock --- 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(); }