{
vec_add1 (callback_vector, t->user_handle);
#if TW_START_STOP_TRACE_SIZE > 0
- TW (tw_timer_trace) (tw, 0xfe, ~0, t - tw->timers);
+ TW (tw_timer_trace) (tw, 0xfe, t->user_handle,
+ t - tw->timers);
#endif
pool_put (tw->timers, t);
}
{
vec_add1 (callback_vector, t->user_handle);
#if TW_START_STOP_TRACE_SIZE > 0
- TW (tw_timer_trace) (tw, 0xfe, ~0, t - tw->timers);
+ TW (tw_timer_trace) (tw, 0xfe, t->user_handle,
+ t - tw->timers);
#endif
pool_put (tw->timers, t);
}
{
vec_add1 (callback_vector, t->user_handle);
#if TW_START_STOP_TRACE_SIZE > 0
- TW (tw_timer_trace) (tw, 0xfe, ~0, t - tw->timers);
+ TW (tw_timer_trace) (tw, 0xfe, t->user_handle,
+ t - tw->timers);
#endif
pool_put (tw->timers, t);
}
next_index = t->next;
vec_add1 (callback_vector, t->user_handle);
#if TW_START_STOP_TRACE_SIZE > 0
- TW (tw_timer_trace) (tw, 0xfe, ~0, t - tw->timers);
+ TW (tw_timer_trace) (tw, 0xfe, t->user_handle, t - tw->timers);
#endif
pool_put (tw->timers, t);
}
{
/* The callback is optional. We return the u32 * handle vector */
if (tw->expired_timer_callback)
- tw->expired_timer_callback (callback_vector);
+ {
+ tw->expired_timer_callback (callback_vector);
+ vec_reset_length (callback_vector);
+ }
tw->expired_timer_handles = callback_vector;
}