diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-02-27 21:29:07 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-02-27 21:29:07 +0100 |
commit | f9d6b3b462fa3db5a70e8bd1e1625d35f9e0f21b (patch) | |
tree | e272d292c0e0df9803be2ccb66ac43c8f77bfe8e /src/low-can-binding.cpp | |
parent | 7c40ad1076fa608863eb62991d436267dab43dbb (diff) |
In class mutex and condition variable except for subscribed_signals map
For now...
Change-Id: I133deb39fcd0660064b3b3c2a52f86ad37cb29c2
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/low-can-binding.cpp')
-rw-r--r-- | src/low-can-binding.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/low-can-binding.cpp b/src/low-can-binding.cpp index be2d373..cae86f5 100644 --- a/src/low-can-binding.cpp +++ b/src/low-can-binding.cpp @@ -77,7 +77,7 @@ static int subscribe_unsubscribe_signal(struct afb_req request, bool subscribe, { int ret; - std::lock_guard<std::mutex> subscribed_signals_lock(subscribed_signals_mutex); + std::lock_guard<std::mutex> subscribed_signals_lock(get_subscribed_signals_mutex()); auto ss_i = subscribed_signals.find(sig.genericName); if (ss_i != subscribed_signals.end() && !afb_event_is_valid(ss_i->second)) { |