MCPcopy Create free account
hub / github.com/F-Stack/f-stack / pipeline_is_running

Function pipeline_is_running

dpdk/examples/ip_pipeline/thread.c:170–177  ·  view source on GitHub ↗

* Pipeline is running when: * (A) Pipeline is mapped to a data plane thread AND * (B) Its data plane thread is in RUNNING state. */

Source from the content-addressed store, hash-verified

168 * (B) Its data plane thread is in RUNNING state.
169 */
170static inline int
171pipeline_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

Calls 1

thread_is_runningFunction · 0.70

Tested by

no test coverage detected