From: Joel Holdsworth Date: Thu, 5 Jun 2014 20:28:59 +0000 (+0100) Subject: DecoderStack: Fixed thread dead-lock X-Git-Tag: pulseview-0.3.0~596 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=7df04abc1537c26d9f2e2733d6c17a31e0cd7f2e;p=pulseview.git DecoderStack: Fixed thread dead-lock --- diff --git a/pv/data/decoderstack.cpp b/pv/data/decoderstack.cpp index 31dc8b30..414aaf0c 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(); }