I would use a Producer/Consumer here. In short, you will queue up the data to be saved and then use another loop that does nothing but read the queue and save the data.
↧
I would use a Producer/Consumer here. In short, you will queue up the data to be saved and then use another loop that does nothing but read the queue and save the data.