Do I need to protect read access to an STL container in a multithreading environment?

前端 未结 8 1767
逝去的感伤
逝去的感伤 2020-11-29 10:01

I have one std::list<> container and these threads:

  • One writer thread which adds elements indefinitely.

  • One reader/writer thread which re

8条回答
  •  自闭症患者
    2020-11-29 10:09

    The STL in VC++ version 6 is not thread-safe, see this recent question. So it seems your question is a bit irrelevant. Even if you did everything right, you may still have problems.

提交回复
热议问题