* Release the recursive ticketlock. * * @param tlr * A pointer to the recursive ticketlock. */
| 178 | * A pointer to the recursive ticketlock. |
| 179 | */ |
| 180 | static inline void |
| 181 | rte_ticketlock_recursive_unlock(rte_ticketlock_recursive_t *tlr) |
| 182 | { |
| 183 | if (--(tlr->count) == 0) { |
| 184 | rte_atomic_store_explicit(&tlr->user, TICKET_LOCK_INVALID_ID, |
| 185 | rte_memory_order_relaxed); |
| 186 | rte_ticketlock_unlock(&tlr->tl); |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | /** |
| 191 | * Try to take the recursive lock. |