Thread
:
Has anyone run OpenCV in a separate WPILLib Task / Thread on the RoboRIO?
View Single Post
#
2
02-10-2015, 12:22 AM
calcmogul
WPILib Developer
AKA: Tyler Veness
FRC #3512 (Spartatroniks)
Team Role: Mentor
Join Date: Nov 2011
Rookie Year: 2012
Location: Santa Maria, CA
Posts: 51
Re: Has anyone run OpenCV in a separate WPILLib Task / Thread on the RoboRIO?
If you're using C++, you can make a new thread with std::thread.
http://www.cplusplus.com/reference/thread/thread/
Use std::mutex for synchronization (i.e. variable passing) between threads. std::future would also work well here.
__________________
http://www.catb.org/esr/faqs/smart-q...ns.html#before
GitHub
|
3512 Website
calcmogul
View Public Profile
Find all posts by calcmogul
Find CD-Media Photos by calcmogul
Find CD-Media Papers by calcmogul