How to take photos at the same time for multiple cameras in pure C++(without blueprint or sth)?

Of course I’ll send the full project once it’s done. I think I might rewrite the disk writing portion to maybe save of a TArray of UTextures and then save them out slowly once the whole process ends. Seems to be too taxing for the system as is.