summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
7674529)
Change-Id: Ib905a3e0ea58a32761c4dda4a391c1d7b311c12a
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
{
is_decoding_ = true;
th_decoding_ = std::thread(&can_bus_t::can_decode_message, this);
{
is_decoding_ = true;
th_decoding_ = std::thread(&can_bus_t::can_decode_message, this);
- if(!th_decoding_.joinable())
- is_decoding_ = false;
is_pushing_ = true;
th_pushing_ = std::thread(&can_bus_t::can_event_push, this);
is_pushing_ = true;
th_pushing_ = std::thread(&can_bus_t::can_event_push, this);
- if(!th_pushing_.joinable())
- is_pushing_ = false;
}
/// @brief Will stop all threads holded by can_bus_t object
}
/// @brief Will stop all threads holded by can_bus_t object