* Atomically read a 16-bit value from a counter. * * @param v * A pointer to the atomic counter. * @return * The value of the counter. */
| 250 | * The value of the counter. |
| 251 | */ |
| 252 | static inline int16_t |
| 253 | rte_atomic16_read(const rte_atomic16_t *v) |
| 254 | { |
| 255 | return v->cnt; |
| 256 | } |
| 257 | |
| 258 | /** |
| 259 | * Atomically set a counter to a 16-bit value. |
no outgoing calls