简体   繁体   English

是在类似于列表和 unordered_maps 的 boost 或 stl 线程安全容器中吗?

[英]Is in boost or stl thread safe containers similar to lists and unordered_maps?

I am using stl and boost containers in program.我在程序中使用 stl 和 boost 容器。 I added threads so I wonder is in boost or stl thread safe containers similar to lists and unordered_maps ?我添加了线程,所以我想知道是在类似于列表和 unordered_maps 的 boost 或 stl 线程安全容器中吗?

在最新的 boost 版本中添加了无容器。

截至今天,Boost 的 Lockfree 框架不提供线程安全的无序映射或线程安全(和无锁)向量,类似于您可以在 Threadings Building Block API 中找到的向量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM