From 8669985f9ab8821053bdaeadc08250c8c1e71d29 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Thu, 9 Feb 2017 18:05:48 +0000 Subject: Re-implementation in C++ and separate threads to read, decode and pushing on the event loop. Old code has been moved into obsolete directory. Change-Id: Ia389ab84a1dc566c48e0269f2466843de0e51158 Signed-off-by: Romain Forlot --- can-utils.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'can-utils.h') diff --git a/can-utils.h b/can-utils.h index 55408cb..0a4fa24 100644 --- a/can-utils.h +++ b/can-utils.h @@ -96,9 +96,15 @@ class CanBus { bool is_fdmode_on; struct sockaddr_can txAddress; + std::thread th_reading; + std::thread th_decoding; + std::thread th_pushing; + public: int open(); int close(); + + void start_threads(); }; /* Public: The ID format for a CAN message. -- cgit 1.2.3-korg