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

Function rte_ticketlock_recursive_init

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

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

Source from the content-addressed store, hash-verified

146 * A pointer to the recursive ticketlock.
147 */
148static inline void
149rte_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.

Callers 1

test_ticketlockFunction · 0.85

Calls 1

rte_ticketlock_initFunction · 0.85

Tested by 1

test_ticketlockFunction · 0.68