Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boost::signals2::connect is thread safe, so the lock is unnecessary #1087

Merged
merged 1 commit into from
Jan 14, 2015

Conversation

soyersoyer
Copy link
Contributor

No description provided.

@@ -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));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please leave the brackets in? They are required by our style guide.

@soyersoyer
Copy link
Contributor Author

Sorry, I haven't read the style guide yet. Modified.

jspricke added a commit that referenced this pull request Jan 14, 2015
boost::signals2::connect is thread safe, so the lock is unnecessary
@jspricke jspricke merged commit 391801d into PointCloudLibrary:master Jan 14, 2015
@soyersoyer soyersoyer deleted the bs_ts branch January 15, 2015 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants