diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2022-05-20 14:19:08 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2023-03-24 08:32:17 -0400 | 
| commit | 907a2395f423e3b97335d554557c2cef7195db84 (patch) | |
| tree | 18ea691bc5589fa570c739a9f221429633778ea9 /lib/wheel.c | |
| parent | e6685141aae8fc869d49cde1d459f73b87bbec89 (diff) | |
*: Convert thread_add_XXX functions to event_add_XXX
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/wheel.c')
| -rw-r--r-- | lib/wheel.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/wheel.c b/lib/wheel.c index 363b27ab13..27e087efc6 100644 --- a/lib/wheel.c +++ b/lib/wheel.c @@ -47,8 +47,8 @@ static void wheel_timer_thread_helper(struct event *t)  		slots_to_skip++;  	wheel->slots_to_skip = slots_to_skip; -	thread_add_timer_msec(wheel->master, wheel_timer_thread, wheel, -			      wheel->nexttime * slots_to_skip, &wheel->timer); +	event_add_timer_msec(wheel->master, wheel_timer_thread, wheel, +			     wheel->nexttime * slots_to_skip, &wheel->timer);  }  static void wheel_timer_thread(struct event *t) @@ -85,8 +85,8 @@ struct timer_wheel *wheel_init(struct thread_master *master, int period,  	for (i = 0; i < slots; i++)  		wheel->wheel_slot_lists[i] = list_new(); -	thread_add_timer_msec(wheel->master, wheel_timer_thread, wheel, -			      wheel->nexttime, &wheel->timer); +	event_add_timer_msec(wheel->master, wheel_timer_thread, wheel, +			     wheel->nexttime, &wheel->timer);  	return wheel;  }  | 
