Replacing malloc, new, and delete

As emphasized earlier in this chapter, the Threading Building Blocks containers are not likely to provide adequate performance when used with general C++ memory routines. A production-quality solution to memory allocation requires some custom memory-allocation functions that reflect your operating system and C++ compiler. You can make the replacement in one of the following ways:

  • Replace malloc/free and related memory routines (C programs).

  • Replace global new and delete operators (C++ programs).

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.23.130.108