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

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -