* Atomically set a counter to a 32-bit value. * * @param v * A pointer to the atomic counter. * @param new_value * The new value for the counter. */
| 549 | * The new value for the counter. |
| 550 | */ |
| 551 | static inline void |
| 552 | rte_atomic32_set(rte_atomic32_t *v, int32_t new_value) |
| 553 | { |
| 554 | v->cnt = new_value; |
| 555 | } |
| 556 | |
| 557 | /** |
| 558 | * Atomically add a 32-bit value to an atomic counter. |
no outgoing calls