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

Function rte_ticketlock_init

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

* Initialize the ticketlock to an unlocked state. * * @param tl * A pointer to the ticketlock. */

Source from the content-addressed store, hash-verified

49 * A pointer to the ticketlock.
50 */
51static inline void
52rte_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.

Callers 2

test_ticketlockFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_ticketlockFunction · 0.68