Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-dev by
Diff: platform/mbed_mem_trace.h
- Revision:
- 181:96ed750bd169
- Parent:
- 179:79309dc6340a
diff -r b0033dcd6934 -r 96ed750bd169 platform/mbed_mem_trace.h --- 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'.
