可能重复:
Is the C++ STL std::set thread-safe?
Thread safety for STL queue正在使用std :: deque或std :: priority_queue线程安全吗?
我猜测它是不是,我只是想确认一下。 含义2线程使用相同 std :: deque使用std::deque::push_back
或push_front
在同一时间。
同样的问题也适用于std::priority_queue
和功能std::priority_queue::push
和std::priority_queue::pop
..
是这些容器线程安全的?或者我应该亲自将其编程为线程安全的?
Tnx很多。
可能的重复 - http:// stackoverflow。com/questions/1362110/is-the-c-stl-stdset-thread-safe – DumbCoder 2010-11-05 12:46:29