MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rte_ticketlock_unlock

Function rte_ticketlock_unlock

dpdk/lib/eal/include/rte_ticketlock.h:77–82  ·  view source on GitHub ↗

* Release the ticketlock. * * @param tl * A pointer to the ticketlock. */

Source from the content-addressed store, hash-verified

75 * A pointer to the ticketlock.
76 */
77static inline void
78rte_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.

Callers 5

test_ticketlock_per_coreFunction · 0.85
load_loop_fnFunction · 0.85
test_ticketlock_tryFunction · 0.85
test_ticketlockFunction · 0.85

Calls

no outgoing calls

Tested by 4

test_ticketlock_per_coreFunction · 0.68
load_loop_fnFunction · 0.68
test_ticketlock_tryFunction · 0.68
test_ticketlockFunction · 0.68