Code Review
/
apps
/
agl-service-can-low-level.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Re-implementation in C++ and separate threads to
[apps/agl-service-can-low-level.git]
/
can-utils.h
diff --git
a/can-utils.h
b/can-utils.h
index
55408cb
..
0a4fa24
100644
(file)
--- 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.