mardi 19 mars 2019

std::vector natural thread safe while iteration

Assuming, I have std::vector and two threads.

First thread is process erase function while second thread is in for-loop

Is this situation a thread-safe?

Would second thread keep running or throwing an exception?

Aucun commentaire:

Enregistrer un commentaire