I seem to post questions here alot recently, I'll be sure to check back frequently though in order that I can help anyone from my limited knowledge, which will hopefully continue to grow :p
'Giving back' or some such.
I'll have to go read up on this, but any rough guidance to inform me if this is or is not possible would be great.
I've a webcam running 25fps. I process each image, processing takes almost 1 second. If I program this serially, I'll miss 24 frames each second.
I want to have a thread do the image capture and dump each image internally into a vector. The second thread can process as fast as it can on this ever growing queue (until the image capture stops, then it can work down the backlog).
So I want 2 threads both sharing this vector. Is this ok to do? And if so does anyone have any advice on whether to do it using VC++ functions like _beginthreadex( ) and _endthreadex( ) or to use OpenMP (are both these suitable for this task?)
Thanks for the help, again. :)