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

Remove unnecessary mutex with callback to fix #486 #489

Merged
merged 3 commits into from
Jun 3, 2021

Conversation

egolearner
Copy link
Contributor

No description provided.

@saudet
Copy link
Member

saudet commented Jun 3, 2021

/cc @tmm1

@tmm1
Copy link
Contributor

tmm1 commented Jun 3, 2021

This seems okay, but I'm not an expert at the pthread apis.

My original PR seemed to suggest a lock was needed around the get+set to make it atomic. Otherwise two threads could end up calling set?

@tmm1
Copy link
Contributor

tmm1 commented Jun 3, 2021

Oh this is a thread local.. yea the lock seems unnecessary.

@egolearner
Copy link
Contributor Author

Oh this is a thread local.. yea the lock seems unnecessary.

Make sense!

@saudet saudet merged commit 4352581 into bytedeco:master Jun 3, 2021
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.

None yet

3 participants