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

Function _cancel_thread

dpdk/app/test/test_event_timer_adapter.c:932–949  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

930}
931
932static int
933_cancel_thread(void *args)
934{
935 RTE_SET_USED(args);
936 struct rte_event_timer *ev_tim = NULL;
937 uint16_t ret;
938
939 while (!arm_done || rte_ring_count(timer_producer_ring) > 0) {
940 if (rte_ring_dequeue(timer_producer_ring, (void **)&ev_tim))
941 continue;
942
943 ret = rte_event_timer_cancel_burst(timdev, &ev_tim, 1);
944 TEST_ASSERT_EQUAL(ret, 1, "Failed to cancel timer");
945 rte_mempool_put(eventdev_test_mempool, (void *)ev_tim);
946 }
947
948 return TEST_SUCCESS;
949}
950
951static int
952_cancel_burst_thread(void *args)

Callers

nothing calls this directly

Calls 4

rte_ring_countFunction · 0.85
rte_ring_dequeueFunction · 0.85
rte_mempool_putFunction · 0.85

Tested by

no test coverage detected