3 ms·
I don't see it mentioned, so does anyone know: Can I use this in parallel with malloc? Meaning, can one part of my program use this for allocating memory, while
by Asooka 10y ago
I don't see it mentioned, so does anyone know: Can I use this in parallel with malloc? Meaning, can one part of my program use this for allocating memory, while another uses the standard library malloc/free?
- frutiger 10y agoIf you implement the pmr interface and use pmr container types[0] then yes. 1. http://en.cppreference.com/w/cpp/memory/memory_resource http://en.cppreference.com/w/cpp/memory/memory_resource
- maniccoder 10y agoYes, you can (unless you also include the provided malloc.c glue code which provides the malloc family of entry points - only use the rpmalloc.c implementation). However, read the caveat section in the readme if you're on a mmap based system.