Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在程序中使用 stl 和 boost 容器。我添加了线程,所以我想知道是在类似于列表和 unordered_maps 的 boost 或 stl 线程安全容器中吗?
在最新的 boost 版本中添加了无锁容器。
截至今天,Boost 的 Lockfree 框架不提供线程安全的无序映射或线程安全(和无锁)向量,类似于您可以在 Threadings Building Block API 中找到的向量。