Re-implementation in C++ and separate threads to
[apps/agl-service-can-low-level.git] / can-utils.h
index 55408cb..0a4fa24 100644 (file)
@@ -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.