diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-02 23:23:32 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-02 23:23:32 +0100 |
commit | 87e9e640972e2833490b56c0a87897c7529b0f87 (patch) | |
tree | 3413cbba13f46ef1ad73a8efd3c2de2fc57d6511 /src/can-bus.hpp | |
parent | 0961202bff0758ffdccf7bcd0dc9b721e20b2edb (diff) |
Fix: unsynchronization between queues.
Ressources not enough protected with mutex, I extend
the scope of the lock to make sure that event flow go
through synchronously.
Change-Id: I77a80ab69eb768a211c537e0f33580379832a465
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/can-bus.hpp')
-rw-r--r-- | src/can-bus.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/can-bus.hpp b/src/can-bus.hpp index b80b68d9..41d3f36a 100644 --- a/src/can-bus.hpp +++ b/src/can-bus.hpp @@ -169,6 +169,7 @@ class can_bus_t { */ std::condition_variable& get_new_can_message(); + bool has_can_message(); /** * @brief Return first openxc_VehicleMessage on the queue |