Skip to content

Commit

Permalink
Changed lock guard to scoped lock and removed boost header
Browse files Browse the repository at this point in the history
  • Loading branch information
progtologist authored and Aris Synodinos committed Mar 14, 2017
1 parent 9d0923e commit 2707516
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lead_lag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@

#include <control_toolbox/lead_lag.h>
#include <tinyxml.h>
#include <boost/thread/lock_guard.hpp>

using namespace control_toolbox;

Expand Down Expand Up @@ -199,7 +198,7 @@ void LeadLag::updateDynamicReconfig(control_toolbox::LeadLagConfig config) {

// Set starting values, using a shared mutex with dynamic reconfig
{
boost::lock_guard<boost::recursive_mutex> lock(lead_lag_reconfig_mutex_);
boost::recursive_mutex::scoped_lock lock(lead_lag_reconfig_mutex_);
lead_lag_reconfig_server_->updateConfig(config);
}
}
Expand Down

0 comments on commit 2707516

Please sign in to comment.