I need a vector container to be shared between two threads of the same process, providing secure access through mutex for the following methods:
empty size erase push_back
I would also like the compiler to provide an iterator that locks the container while the iterator is in use. In fact, I am looking for a collection with the std::vector<...> interface, but with access protection at the same time, but I can not find anything.
Are boost::interprocess containers suitable for this application? If not, is there an alternative that is more suitable or do I need to write my own?
source share