aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorPetri Savolainen <petri.savolainen@nokia.com>2023-11-28 16:07:26 +0200
committerPetri Savolainen <petri.savolainen@nokia.com>2023-12-20 10:38:47 +0200
commit9e8bed5058d9cfbd1147d1fc3b4807339ffc74d5 (patch)
tree216fcfd3f9ba6ee0570f0fdea38129567d9ea297 /example
parent2a2a53ffacf6e1103b6a689f174af8a1188a9842 (diff)
api: timer: deprecate odp_timeout_fresh()
Remove the function to check if a timeout is from a timer that was tried to be restarted or cancelled (the try failed), or from a timer that was freed. The feature is not very useful to applications, since freshness result depends on timing of those API calls vs the freshness check point. Also, an application should be able to maintain the same status information itself if needed. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com> Acked-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Diffstat (limited to 'example')
-rw-r--r--example/timer/odp_timer_test.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/example/timer/odp_timer_test.c b/example/timer/odp_timer_test.c
index 8cda4043a..a397a6ac9 100644
--- a/example/timer/odp_timer_test.c
+++ b/example/timer/odp_timer_test.c
@@ -165,13 +165,7 @@ static void test_abs_timeouts(int thr, test_globals_t *gbls)
tick = odp_timeout_tick(tmo);
ttp = odp_timeout_user_ptr(tmo);
ttp->ev = ev;
- if (!odp_timeout_fresh(tmo)) {
- /* Not the expected expiration tick, timer has
- * been reset or cancelled or freed */
- ODPH_ABORT("Unexpected timeout received (timer "
- "%" PRIu64 ", tick %" PRIu64 ")\n",
- odp_timer_to_u64(ttp->tim), tick);
- }
+
ODPH_DBG(" [%i] timeout, tick %" PRIu64 "\n", thr, tick);
uint32_t rx_num = odp_atomic_fetch_dec_u32(&gbls->remain);