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

Function test_atomic_tas

dpdk/app/test/test_atomic.c:148–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148static int
149test_atomic_tas(__rte_unused void *arg)
150{
151 while (rte_atomic32_read(&synchro) == 0)
152 ;
153
154 if (rte_atomic16_test_and_set(&a16))
155 rte_atomic64_inc(&count);
156 if (rte_atomic32_test_and_set(&a32))
157 rte_atomic64_inc(&count);
158 if (rte_atomic64_test_and_set(&a64))
159 rte_atomic64_inc(&count);
160
161 return 0;
162}
163
164static int
165test_atomic_addsub_and_return(__rte_unused void *arg)

Callers

nothing calls this directly

Calls 5

rte_atomic32_readFunction · 0.85
rte_atomic64_incFunction · 0.50

Tested by

no test coverage detected