Is C++'s new operator reentrant (or async-safe)?

前端 未结 3 1645
不思量自难忘°
不思量自难忘° 2021-02-08 13:23

The background is in this question of mine. Put shortly, I have to fork in a multithreaded C++ program, so I\'d like to figure out how much I can do when r

3条回答
  •  青春惊慌失措
    2021-02-08 14:06

    Standard allows new to be just a wrapper around malloc, so if malloc can be not reentrant, so can new.

提交回复
热议问题