Skip to content

Commit cfc9a91

Browse files
author
Aris Synodinos
committed
Changed lock guard to scoped lock and removed boost header
1 parent 9d0923e commit cfc9a91

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lead_lag.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939

4040
#include <control_toolbox/lead_lag.h>
4141
#include <tinyxml.h>
42-
#include <boost/thread/lock_guard.hpp>
4342

4443
using namespace control_toolbox;
4544

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

200199
// Set starting values, using a shared mutex with dynamic reconfig
201200
{
202-
boost::lock_guard<boost::recursive_mutex> lock(lead_lag_reconfig_mutex_);
201+
boost::recursive_mutex::scoped_lock lock(lead_lag_reconfig_mutex_);
203202
lead_lag_reconfig_server_->updateConfig(config);
204203
}
205204
}

0 commit comments

Comments
 (0)