-
-
Notifications
You must be signed in to change notification settings - Fork 195
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
Fixes #223 (Add locks for cv::Mat and skip processing when the source is deactivated) #224
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's use std
tools for locking
I've changed the code to work with std::mutex but it revealed that using std::mutex requires the constructor of background_removal_filter to be called and thus requires #222 to be merged 🤣 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is looking good
Prevent race condition from happening.
Hopefully fixes #223