Open radioman opened 8 years ago
what is the context?
static void *
pix_malloc(size_t size)
{
#ifndef _MSC_VER
return (*pix_mem_manager.allocator)(size);
#else /* _MSC_VER */
/* Under MSVC++, pix_mem_manager is initialized after a call
* to pix_malloc. Just ignore the custom allocator feature. */
return malloc(size);
#endif /* _MSC_VER */
}
..i mean why custom allocator is bypassed by default?
probably because it will crash otherwise
it works just fine!, and i made it thread safe, check my fork
I don't know how to check it. Perhaps you can send me a patch and a simple program with a custom allocator that verifies your statement.
what is the reason?