user1035931
user1035931

Reputation: 21

Multi-threaded one reader and one writer using boost

I'm programming in C++ on linux. My program uses two threads when one reads and writes to a shared data-structure. The data-structure is from type - Boost::bimaps::unordered_set_of . So my question is whether I need to worry regarding any synchronizing issues. I.E, do I need to protect the read and write fro the data-structure with locks (or something like that)? Or maybe I will work fine without any use in mutexes?

Thanks.

Upvotes: 0

Views: 119

Answers (2)

Mike Seymour
Mike Seymour

Reputation: 254701

In common with the standard containers, Boost.Bimap does not provide thread synchronisation. You will have to provide that yourself.

Upvotes: 0

Related Questions