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

#ifndef THREADX_TESTSUITE   /* see THREADX_TESTSUITE comments below */
    tx_mutex_prioritize (&clib_lock_mutex);    /* is this at all necessary? */
#endif
    tx_mutex_put (&clib_lock_mutex);
}
/**************************************************************************/
/*    __malloc_unlock - called by the malloc() family of routines when    */
/*    need to unlock the memory pool.                                     */
/**************************************************************************/
called by the malloc() family of routines when
need to unlock the memory pool.
called by the malloc () family of routines when need to unlock the memory pool .
void
__malloc_unlock (struct _reent * ptr)
{
    if (_tx_thread_system_state != TX_INITIALIZE_IS_FINISHED) {
        return;
    }
#ifndef THREADX_TESTSUITE   
    tx_mutex_prioritize (&clib_lock_mutex);    
#endif
    tx_mutex_put (&clib_lock_mutex);
}
void __malloc_unlock ( struct _reent * ptr ) { if ( _tx_thread_system_state != TX_INITIALIZE_IS_FINISHED ) { return ; } #ifndef THREADX_TESTSUITE tx_mutex_prioritize ( & clib_lock_mutex ) ; #endif tx_mutex_put ( & clib_lock_mutex ) ; }
__malloc_unlock - called by the malloc() family of routines when
need to unlock the memory pool.
__malloc_unlock - called by the malloc () family of routines when need to unlock the memory pool .
/* see THREADX_TESTSUITE comments below */ /* is this at all necessary? */