src/dpdk/lib/librte_eal/include/generic/rte_ticketlock.h
static inline void
rte_ticketlock_recursive_lock(rte_ticketlock_recursive_t *tlr)
{
	int id = rte_gettid();

	if (__atomic_load_n(&tlr->user, __ATOMIC_RELAXED) != id) {
		rte_ticketlock_lock(&tlr->tl);
		__atomic_store_n(&tlr->user, id, __ATOMIC_RELAXED);
	}
	tlr->count++;
}
/**
 * Take the recursive ticketlock.
 *
 * @param tlr
 *   A pointer to the recursive ticketlock.
 */
Take the recursive ticketlock.
@param tlr
A pointer to the recursive ticketlock.
Take the recursive ticketlock . @param tlr A pointer to the recursive ticketlock .
static inline void
rte_ticketlock_recursive_lock(rte_ticketlock_recursive_t *tlr)
{
	int id = rte_gettid();
	if (__atomic_load_n(&tlr->user, __ATOMIC_RELAXED) != id) {
		rte_ticketlock_lock(&tlr->tl);
		__atomic_store_n(&tlr->user, id, __ATOMIC_RELAXED);
	}
	tlr->count++;
}
static inline void rte_ticketlock_recursive_lock ( rte_ticketlock_recursive_t * tlr ) { int id = rte_gettid ( ) ; if ( __atomic_load_n ( & tlr -> user , __ATOMIC_RELAXED ) != id ) { rte_ticketlock_lock ( & tlr -> tl ) ; __atomic_store_n ( & tlr -> user , id , __ATOMIC_RELAXED ) ; } tlr -> count ++ ; }
Take the recursive ticketlock.
Take the recursive ticketlock .