AzureMXChip/MXCHIPAZ3166/core/lib/threadx/ports/xtensa/xcc/src/tx_clib_lock.c
void
__malloc_lock (struct _reent * ptr)
{
    if (_tx_thread_system_state != TX_INITIALIZE_IS_FINISHED) {
        return;
    }

    tx_mutex_get (&clib_lock_mutex, TX_WAIT_FOREVER);
}
/**************************************************************************/
/*    __malloc_lock - called by the malloc() family of routines when they */
/*    need to lock the memory pool. A call to malloc() may call this      */
/*    function recursively.                                               */
/**************************************************************************/
called by the malloc() family of routines when they
need to lock the memory pool. A call to malloc() may call this
function recursively.
called by the malloc () family of routines when they need to lock the memory pool . A call to malloc () may call this function recursively .
void
__malloc_lock (struct _reent * ptr)
{
    if (_tx_thread_system_state != TX_INITIALIZE_IS_FINISHED) {
        return;
    }
    tx_mutex_get (&clib_lock_mutex, TX_WAIT_FOREVER);
}
void __malloc_lock ( struct _reent * ptr ) { if ( _tx_thread_system_state != TX_INITIALIZE_IS_FINISHED ) { return ; } tx_mutex_get ( & clib_lock_mutex , TX_WAIT_FOREVER ) ; }
__malloc_lock - called by the malloc() family of routines when they
need to lock the memory pool.
__malloc_lock - called by the malloc () family of routines when they need to lock the memory pool .