Relative Content

Tag Archive for c++multithreadingsocketsembeddedcan-bus

Why is there sometimes a delay on blocking CAN sockets when using 2 threads?

I am writing a library for CubeMars motors that use the CAN communication protocol.
The library uses 2 threads: the main thread does almost everything, while the second thread is a listener that listens to the CAN bus (= to the motors’ answers and confirmations) and saves those information. The main thread can later access that info.