#include "can-signals.hpp"
#include "can-decoder.hpp"
-#include "../configuration.hpp"
+#include "../binding/configuration.hpp"
#include "../utils/signals.hpp"
#include "../utils/openxc-utils.hpp"
{
can_message_t msg;
s.second->get_socket() >> msg;
- push_new_can_message(msg);
+ std::lock_guard<std::mutex> can_message_lock(get_can_message_mutex());
+ { push_new_can_message(msg); }
+ get_new_can_message_cv().notify_one();
}
}
}
vehicle_message_q_.push(v_msg);
}
-/// @brief Create a RX_SETUP receive job for the BCM socket of a CAN signal.
-///
-/// @return 0 if ok -1 if not.
- int can_bus_t::create_rx_filter(const can_signal_t& s)
- {
- const std::string& bus = s.get_message().get_bus_name();
- return can_bus_t::can_devices_[bus]->create_rx_filter(s);
- }
-
/// @brief Return a map with the can_bus_dev_t initialized
///
/// @return map can_bus_dev_m_ map