Design Problem: Thread safety of std::map

后端 未结 5 1148
说谎
说谎 2021-01-03 14:57

I am using std::map to implement my local hash table, which will be accessed by multiple threads at the same time. I did some research and found that std::map is not thread

5条回答
  •  抹茶落季
    2021-01-03 15:43

    From what I can see, a similar question has been answered here, and the answer includes the explanation for this question also, as well as a link explaining the thread safety in more details.

    Thread safety of std::map for read-only operations

提交回复
热议问题