| 146 | } |
| 147 | |
| 148 | static int |
| 149 | test_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 | |
| 164 | static int |
| 165 | test_atomic_addsub_and_return(__rte_unused void *arg) |
nothing calls this directly
no test coverage detected