src/dpdk/lib/librte_eal/include/generic/rte_ticketlock.h
static inline void
rte_ticketlock_lock(rte_ticketlock_t *tl)
{
	uint16_t me = __atomic_fetch_add(&tl->s.next, 1, __ATOMIC_RELAXED);
	rte_wait_until_equal_16(&tl->s.current, me, __ATOMIC_ACQUIRE);
}
/**
 * Take the ticketlock.
 *
 * @param tl
 *   A pointer to the ticketlock.
 */
Take the ticketlock.
@param tl
A pointer to the ticketlock.
Take the ticketlock . @param tl A pointer to the ticketlock .
static inline void
rte_ticketlock_lock(rte_ticketlock_t *tl)
{
	uint16_t me = __atomic_fetch_add(&tl->s.next, 1, __ATOMIC_RELAXED);
	rte_wait_until_equal_16(&tl->s.current, me, __ATOMIC_ACQUIRE);
}
static inline void rte_ticketlock_lock ( rte_ticketlock_t * tl ) { uint16_t me = __atomic_fetch_add ( & tl -> s . next , 1 , __ATOMIC_RELAXED ) ; rte_wait_until_equal_16 ( & tl -> s . current , me , __ATOMIC_ACQUIRE ) ; }
Take the ticketlock.
Take the ticketlock .