* Atomically read a 32-bit value from a counter. * * @param v * A pointer to the atomic counter. * @return * The value of the counter. */
| 535 | * The value of the counter. |
| 536 | */ |
| 537 | static inline int32_t |
| 538 | rte_atomic32_read(const rte_atomic32_t *v) |
| 539 | { |
| 540 | return v->cnt; |
| 541 | } |
| 542 | |
| 543 | /** |
| 544 | * Atomically set a counter to a 32-bit value. |
no outgoing calls