* Check is the ring for single producer. * * @param r * A pointer to the ring structure. * @return * true if ring is SP, zero otherwise. */
| 606 | * true if ring is SP, zero otherwise. |
| 607 | */ |
| 608 | static inline int |
| 609 | rte_ring_is_prod_single(const struct rte_ring *r) |
| 610 | { |
| 611 | return (rte_ring_get_prod_sync_type(r) == RTE_RING_SYNC_ST); |
| 612 | } |
| 613 | |
| 614 | /** |
| 615 | * Return sync type used by consumer in the ring. |
no test coverage detected