Implement this interface to provide an intercept free callback. More...
Public Member Functions | |
| virtual void | mdxInterceptFree (MDXPool *pool, void *chunk, void *innerFreeParam, void *interceptParam)=0 |
| The intercept free callback itself. More... | |
| virtual | ~MDXInterceptHandler () |
| A virtual destructor, present only to avoid compiler warnings. | |
Implement this interface to provide an intercept free callback.
Set an intercept free callback by setting MDXConfiguration::interceptHandler to point to an instance of MDXInterceptHandler.
|
pure virtual |
The intercept free callback itself.
Use MDXPool::innerFree(void *innerFreeParam, void *chunk) and MDXPool::innerFree(void *innerFreeParam, uinta count, void **chunks) to free memory from inside the intercept free callback.
The intercept free callback must not allocate memory or change the settings of any block's flags,
| pool | The address of the MDXPool object managing the memory having its freeing intercepted. |
| chunk | The address of the memory block having its freeing intercepted. |
| innerFreeParam | The value to pass for the innerFreeParam parameter when calling innerFree(). |
| interceptParam | The value of MDXConfiguration::interceptParam from the pool's MDXConfiguration structure. |
1.8.8