Synopsis
libmem_busy_handler_fn_t libmem_set_busy_handler(libmem_busy_handler_fn_t busy_handler_fn);
Description

libmem_set_busy_handler specifies a handler function that should be called each time LIBMEM iterates a busy loop.

busy_handler_fn — A pointer to a busy handler function.

libmem_set_busy_handler returns — A pointer to the existing busy handler or NULL if there isn't one.

This function allows a user defined function to be called each time LIBMEM iterates a busy loop. The typical use of this is to keep watchdogs alive while LIBMEM is carrying out blocking operations.