AzureMXChip/MXCHIPAZ3166/core/lib/threadx/ports/xtensa/xcc/src/tx_clib_lock.c
void
_Mtxinit (_Rmtx * mtx)
{
    TX_MUTEX * lock;

    if (lcnt >= XT_NUM_CLIB_LOCKS) {
        /* Fatal error */
    }

    lock = &(xclib_locks[lcnt]);
    lcnt++;

    /* See notes for newlib case below. */
#ifdef THREADX_TESTSUITE
    tx_mutex_create (lock, "Clib lock", 0);
#else
    tx_mutex_create (lock, "Clib lock", TX_INHERIT);
#endif

    *mtx = lock;
}
/**************************************************************************/
/*    _Mtxinit - initialize a lock. Called once for each lock.            */
/**************************************************************************/
initialize a lock. Called once for each lock.
initialize a lock . Called once for each lock .
void
_Mtxinit (_Rmtx * mtx)
{
    TX_MUTEX * lock;
    if (lcnt >= XT_NUM_CLIB_LOCKS) {
    }
    lock = &(xclib_locks[lcnt]);
    lcnt++;
#ifdef THREADX_TESTSUITE
    tx_mutex_create (lock, "Clib lock", 0);
#else
    tx_mutex_create (lock, "Clib lock", TX_INHERIT);
#endif
    *mtx = lock;
}
void _Mtxinit ( _Rmtx * mtx ) { TX_MUTEX * lock ; if ( lcnt >= XT_NUM_CLIB_LOCKS ) { } lock = & ( xclib_locks [ lcnt ] ) ; lcnt ++ ; #ifdef THREADX_TESTSUITE tx_mutex_create ( lock , " " , 0 ) ; #else tx_mutex_create ( lock , " " , TX_INHERIT ) ; #endif * mtx = lock ; }
_Mtxinit - initialize a lock.
_Mtxinit - initialize a lock .
/* Fatal error */ /* See notes for newlib case below. */