Is std::string thead-safe with gcc 4.3?

后端 未结 6 1416
野性不改
野性不改 2020-12-05 00:46

I\'m developing a multithreaded program running on Linux (compiled with G++ 4.3) and if you search around for a bit you find a lot of scary stories about std::string not bei

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-05 01:02

    According to this bug issue, std::basic_string's copy-on-write implementation still isn't fully thread-safe. is an implementation without COW and seems to do much better in a read-only context.

提交回复
热议问题