Skip to content

Commit

Permalink
boost::signals2::connect is thread safe, so the lock is unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
soyersoyer committed Jan 14, 2015
1 parent 055f34a commit b6067a6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions common/src/time_trigger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ pcl::TimeTrigger::~TimeTrigger ()
boost::signals2::connection
pcl::TimeTrigger::registerCallback (const callback_type& callback)
{
boost::unique_lock<boost::mutex> lock (condition_mutex_);
return (callbacks_.connect (callback));
return callbacks_.connect (callback);
}

//////////////////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit b6067a6

Please sign in to comment.