Boost logo

Boost Users :

From: Conway Allen (Allen.Conway_at_[hidden])
Date: 2006-05-11 03:20:40


Regarding thread safety, if threads are concurrently reading, inserting, and erasing entries in a multi-index container do you have to lockguard all of these operations or can you get away with just lockguarding the inserts and the deletes?

Thanks, Allen.

-----Message d'origine-----
De : boost-users-bounces_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] De la part de JOAQUIN LOPEZ MU?Z
Envoyé : mercredi 10 mai 2006 23:36
À : boost-users_at_[hidden]
Objet : Re: [Boost-users] [multi_index] Core dump in multi-index library !!

Oh, oh. multi_index_container is *not* thread safe, so
this smells like the problem --and it is not, it certainly
has the potential to crash your app sooner or later.
Please take into account thread unsafety extends to
every member function of multi_index_container, so
you'd better lockguard *every* public method of
Procedure_Pool.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net