| 930 | } |
| 931 | |
| 932 | static 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 | |
| 951 | static int |
| 952 | _cancel_burst_thread(void *args) |
nothing calls this directly
no test coverage detected