Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include ...
- #include <thread>
- using namespace std;
- thread threads[1];
- void thread_method(vector<Image> & images){
- // Save vector of images to video
- // Clear the vector of images
- }
- int main(int argc, char* argv[]){
- // Some stuff for initializing the cameras etc.
- while(runStatus)
- {
- for (int i = 0; i < 10; i++)
- {
- //Acquire Image
- //Put image pointer in images vector named images
- }
- threads[0] = thread(thread_method, images)
- }
- // stuff
- threads[0].join();
- cout << endl << "Done! Press Enter to exit..." << endl;
- getchar();
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement