* Initialize the recursive ticketlock to an unlocked state. * * @param tlr * A pointer to the recursive ticketlock. */
| 146 | * A pointer to the recursive ticketlock. |
| 147 | */ |
| 148 | static inline void |
| 149 | rte_ticketlock_recursive_init(rte_ticketlock_recursive_t *tlr) |
| 150 | { |
| 151 | rte_ticketlock_init(&tlr->tl); |
| 152 | rte_atomic_store_explicit(&tlr->user, TICKET_LOCK_INVALID_ID, rte_memory_order_relaxed); |
| 153 | tlr->count = 0; |
| 154 | } |
| 155 | |
| 156 | /** |
| 157 | * Take the recursive ticketlock. |