Consumer is about to update the ring's state to s */
| 80 | |
| 81 | /* Consumer is about to update the ring's state to s */ |
| 82 | static inline uint16_t |
| 83 | state_to_flags(union ring_state s, int abdicate) |
| 84 | { |
| 85 | |
| 86 | if (s.cidx == s.pidx_tail) |
| 87 | return (IDLE); |
| 88 | else if (abdicate && s.pidx_tail != s.pidx_head) |
| 89 | return (ABDICATED); |
| 90 | |
| 91 | return (BUSY); |
| 92 | } |
| 93 | |
| 94 | #ifdef MP_RING_NO_64BIT_ATOMICS |
| 95 | static void |
no outgoing calls
no test coverage detected