helpfor studient
Dependents: STM32_F103-C8T6basecanblink_led
Fork of mbed-dev by
Diff: platform/mbed_mem_trace.h
- Revision:
- 181:96ed750bd169
- Parent:
- 179:79309dc6340a
--- a/platform/mbed_mem_trace.h Thu Dec 07 14:01:42 2017 +0000 +++ b/platform/mbed_mem_trace.h Wed Jan 17 15:23:54 2018 +0000 @@ -73,6 +73,17 @@ void mbed_mem_trace_set_callback(mbed_mem_trace_cb_t cb); /** + * Trace lock. + * @note Locking prevent recursive tracing of malloc/free inside relloc/calloc + */ +void mbed_mem_trace_lock(); + +/** + * Trace unlock. + */ +void mbed_mem_trace_unlock(); + +/** * Trace a call to 'malloc'. * @param res the result of running 'malloc'. * @param size the 'size' argument given to 'malloc'.