title: Is using std::deque or std::priority_queue thread-safe?
body: <blockquote>
    <p><strong>Possible Duplicates:</strong><br>
    <a href="https://stackoverflow.com/questions/1362110/is-the-c-stl-stdset-thread-safe">Is the C++ STL std::set thread-safe?</a><br>
    <a href="https://stackoverflow.com/questions/4029448/thread-safety-for-stl-queue">Thread safety for STL queue</a>  </p>
  </blockquote>
  
  
  
  <p>I'm guessing it isn't, I just want to make sure.
  meaning 2 threads using <strong>the same</strong> std::deque using <code>std::deque::push_back</code> or <code>push_front</code> at the same time.</p>
  
  <p>Same question goes for <code>std::priority_queue</code> and the functions <code>std::priority_queue::push</code> and <code>std::priority_queue::pop</code>..</p>
  
  <p>Are those containers thread-safe? Or I should personally program it to be thread-safe?</p>
  
  <p>Tnx a lot.</p>