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

Function thread_is_running

dpdk/examples/ip_pipeline/thread.c:156–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156static inline int
157thread_is_running(uint32_t thread_id)
158{
159 enum rte_lcore_state_t thread_state;
160
161 thread_state = rte_eal_get_lcore_state(thread_id);
162 return (thread_state == RUNNING) ? 1 : 0;
163}
164
165/**
166 * Pipeline is running when:

Callers 3

pipeline_is_runningFunction · 0.70
thread_pipeline_enableFunction · 0.70
thread_pipeline_disableFunction · 0.70

Calls 1

rte_eal_get_lcore_stateFunction · 0.85

Tested by

no test coverage detected