Re:Rpmalloc – A lock-free memory allocator
by Asooka on Sunday March 19, 2017 @04:43PM
(#13909503)
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?
[ Parent
| on HN ]
Re:Rpmalloc – A lock-free memory allocator
by frutiger on Sunday March 19, 2017 @04:53PM
(#13909564)
If you implement the pmr interface and use pmr container types[0] then yes.
Re:Rpmalloc – A lock-free memory allocator
by maniccoder on Sunday March 19, 2017 @04:56PM
(#13909580)
Yes, 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.