Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For example, if we do some close work in deconstructor, the dependend parent raw ptr may be released. it will core.


6. Never use std::thread to create thread too frequently

Image Added

If create or destroy too frequently, jemalloc may not behavior very well. Sometimes crash. like this:


Image Added

Should use thread pool or std future or promise to do this.