可能重複:
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