c++ - Are boost interprocess containers suitable for thread shared storage in the same process? -
i need vector container shared between 2 threads of same process, providing mutex protected access following methods:
empty size erase push_back
i collection provide iterator locks container while iterator in use. looking collection std::vector<...>
interface concurrent access protection can't seem find anything.
are boost::interprocess
containers suitable application? if not, there alternative more suitable or have write own?
the answer yes - suitable. see here
Comments
Post a Comment