Basically I need to build an app where the main process does some operation based on the values of some global variables, and the secondary thread update this global variables (say each 100ms)
What library do you suggest to work with opencv, c++ and multithreading? (windows)
I have heard there are
- OpenMP
- Boost
- Intel TBB
Which one do you suggest for this simple multi thread application?
C++ supports threads since its newest standard. I would consider using
std::threadfrom the standard library, if C++11 is an option for you. You can find the documentation for example here.The syntax is in my opinion very simple and easy to read (check out a few examples: mutex, future, etc).