a customer came up on me with a question that seemed easy, however I am struggling with the answer.
As the customer acquires images from 8 cameras and wants to save the acquired images on his computer I suggested to him to do this in a new Thread for every image and store the threads in a Vector to make sure all images were written bevore exiting.
He gets the Image out of the WaitResult after calling WaitFor().
The question now is, as the image in WaitResult is a pointer, can he pass it to another thread without having to worry, that this image might be overwritten?
How will the Ringbuffer notice if the Image is saved, as this happens in another Thread.
Should he simply generate a copy to pass on?
Thank you in advance