+ Reply to Thread
Results 1 to 2 of 2

Thread: Is STL container thread safe?

  1. #1
    Junior Member
    Join Date
    Jun 2012

    Is STL container thread safe?

    I am a newbie in STL and want to use it in my multi-threaded application.

    I want to know that is it safe to use STL container in multi-threaded environment?

    Please help.

  2. #2
    No. None of the STL code is thread safe.

    You are responsible to provide thread safety in your code.

    Use proper mechanism like... critical section, semaphore, events etc to make your code thread safe.

    For more information on synchronization:

    I hope this helps.

+ Reply to Thread

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts