* Release the ticketlock. * * @param tl * A pointer to the ticketlock. */
| 75 | * A pointer to the ticketlock. |
| 76 | */ |
| 77 | static inline void |
| 78 | rte_ticketlock_unlock(rte_ticketlock_t *tl) |
| 79 | { |
| 80 | uint16_t i = rte_atomic_load_explicit(&tl->s.current, rte_memory_order_relaxed); |
| 81 | rte_atomic_store_explicit(&tl->s.current, i + 1, rte_memory_order_release); |
| 82 | } |
| 83 | |
| 84 | /** |
| 85 | * Try to take the lock. |
no outgoing calls