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

Function rte_pflock_write_unlock

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

* Release a pflock held for writing. * * @param pf * A pointer to a pflock structure. */

Source from the content-addressed store, hash-verified

170 * A pointer to a pflock structure.
171 */
172static inline void
173rte_pflock_write_unlock(rte_pflock_t *pf)
174{
175 /* Migrate from write phase to read phase. */
176 rte_atomic_fetch_and_explicit(&pf->rd.in, RTE_PFLOCK_LSB, rte_memory_order_release);
177
178 /* Allow other writers to continue. */
179 rte_atomic_fetch_add_explicit(&pf->wr.out, 1, rte_memory_order_release);
180}
181
182#ifdef __cplusplus
183}

Callers 3

test_pflock_per_coreFunction · 0.85
load_loop_fnFunction · 0.85
test_pflockFunction · 0.85

Calls

no outgoing calls

Tested by 3

test_pflock_per_coreFunction · 0.68
load_loop_fnFunction · 0.68
test_pflockFunction · 0.68