From cfc9a91c1d75114f21145faa369b018294327c09 Mon Sep 17 00:00:00 2001 From: Aris Synodinos Date: Tue, 14 Mar 2017 10:48:08 +0200 Subject: [PATCH] Changed lock guard to scoped lock and removed boost header --- src/lead_lag.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lead_lag.cpp b/src/lead_lag.cpp index 48541883..b83afa2e 100644 --- a/src/lead_lag.cpp +++ b/src/lead_lag.cpp @@ -39,7 +39,6 @@ #include #include -#include using namespace control_toolbox; @@ -199,7 +198,7 @@ void LeadLag::updateDynamicReconfig(control_toolbox::LeadLagConfig config) { // Set starting values, using a shared mutex with dynamic reconfig { - boost::lock_guard lock(lead_lag_reconfig_mutex_); + boost::recursive_mutex::scoped_lock lock(lead_lag_reconfig_mutex_); lead_lag_reconfig_server_->updateConfig(config); } }