* Pipeline is running when: * (A) Pipeline is mapped to a data plane thread AND * (B) Its data plane thread is in RUNNING state. */
| 168 | * (B) Its data plane thread is in RUNNING state. |
| 169 | */ |
| 170 | static inline int |
| 171 | pipeline_is_running(struct pipeline *p) |
| 172 | { |
| 173 | if (p->enabled == 0) |
| 174 | return 0; |
| 175 | |
| 176 | return thread_is_running(p->thread_id); |
| 177 | } |
| 178 | |
| 179 | /** |
| 180 | * Main thread & data plane threads: message passing |
no test coverage detected