From: Romain Forlot Date: Wed, 1 Mar 2017 16:07:20 +0000 (+0100) Subject: Wrong call to thread.join cause deadlock and thread termination. X-Git-Tag: 5.0.2~593 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=5800150cb6611075b712c0104773335550dd66e6;p=apps%2Fagl-service-can-low-level.git Wrong call to thread.join cause deadlock and thread termination. Positionning the controlling boolean value will be enough for now Change-Id: I28e2d175e23370746cc30c2403829ebdeec7c2bb Signed-off-by: Romain Forlot --- diff --git a/src/can-bus.cpp b/src/can-bus.cpp index 81dee9a7..52c81cf1 100644 --- a/src/can-bus.cpp +++ b/src/can-bus.cpp @@ -143,8 +143,6 @@ void can_bus_t::stop_threads() { is_decoding_ = false; is_pushing_ = false; - th_decoding_.join(); - th_pushing_.join(); } int can_bus_t::init_can_dev() @@ -396,7 +394,6 @@ void can_bus_dev_t::start_reading(can_bus_t& can_bus) void can_bus_dev_t::stop_reading() { is_running_ = false; - th_reading_.join(); } void can_bus_dev_t::can_reader(can_bus_t& can_bus)