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

Function rte_ticketlock_recursive_unlock

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

* Release the recursive ticketlock. * * @param tlr * A pointer to the recursive ticketlock. */

Source from the content-addressed store, hash-verified

178 * A pointer to the recursive ticketlock.
179 */
180static inline void
181rte_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.

Callers 2

test_ticketlockFunction · 0.85

Calls 1

rte_ticketlock_unlockFunction · 0.85

Tested by 2

test_ticketlockFunction · 0.68