* Initialize the ticketlock to an unlocked state. * * @param tl * A pointer to the ticketlock. */
| 49 | * A pointer to the ticketlock. |
| 50 | */ |
| 51 | static inline void |
| 52 | rte_ticketlock_init(rte_ticketlock_t *tl) |
| 53 | { |
| 54 | rte_atomic_store_explicit(&tl->tickets, 0, rte_memory_order_relaxed); |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * Take the ticketlock. |
no outgoing calls