I implemented my own memory manager, and I redefine the new and delete statements as follows:
void* operator new (size_t size); void operator delete (void *p);
This works fine, but now I am developing in a multi-threaded environment with a lot of heap. To avoid heap conflicts, I want each thread to have its own instance of a memory manager. How to force the operator to override the point in the memory manager instance for this thread?
user152949
source share